Spaces:
Sleeping
Sleeping
Update pdfchatbot.py
Browse files- pdfchatbot.py +2 -0
pdfchatbot.py
CHANGED
@@ -57,7 +57,9 @@ class PDFChatBot:
|
|
57 |
"""
|
58 |
template = """
|
59 |
You are an AI Assistant that help user answer question from user.
|
|
|
60 |
|
|
|
61 |
Question: {question}
|
62 |
Answer: """
|
63 |
self.prompt = PromptTemplate.from_template(template)
|
|
|
57 |
"""
|
58 |
template = """
|
59 |
You are an AI Assistant that help user answer question from user.
|
60 |
+
Combine the chat history and follow up question into a standalone question.
|
61 |
|
62 |
+
Chat History: {chat_history}
|
63 |
Question: {question}
|
64 |
Answer: """
|
65 |
self.prompt = PromptTemplate.from_template(template)
|