Spaces:
Sleeping
Sleeping
Update pdfchatbot.py
Browse files- pdfchatbot.py +5 -5
pdfchatbot.py
CHANGED
|
@@ -55,11 +55,11 @@ class PDFChatBot:
|
|
| 55 |
"""
|
| 56 |
Create a prompt template for the chatbot.
|
| 57 |
"""
|
| 58 |
-
template =
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
self.prompt = PromptTemplate.from_template(template)
|
| 64 |
|
| 65 |
def load_embeddings(self):
|
|
|
|
| 55 |
"""
|
| 56 |
Create a prompt template for the chatbot.
|
| 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)
|
| 64 |
|
| 65 |
def load_embeddings(self):
|