Update app.py
Browse files
app.py
CHANGED
@@ -174,7 +174,7 @@ def create_conversational_rag_chain(retriever):
|
|
174 |
verbose=False,
|
175 |
)
|
176 |
|
177 |
-
template = """Given the
|
178 |
|
179 |
The context contains documents with a 'page_content' field and potentially other metadata. Focus on the 'page_content' field for information retrieval.
|
180 |
|
@@ -182,9 +182,9 @@ def create_conversational_rag_chain(retriever):
|
|
182 |
|
183 |
In the answer use only English language. DO NOT ASK more questions by yourself!
|
184 |
|
185 |
-
|
186 |
|
187 |
-
|
188 |
|
189 |
Answer:
|
190 |
"""
|
|
|
174 |
verbose=False,
|
175 |
)
|
176 |
|
177 |
+
template = """Given the question and context, provide a comprehensive answer in natural language that addresses the question directly.
|
178 |
|
179 |
The context contains documents with a 'page_content' field and potentially other metadata. Focus on the 'page_content' field for information retrieval.
|
180 |
|
|
|
182 |
|
183 |
In the answer use only English language. DO NOT ASK more questions by yourself!
|
184 |
|
185 |
+
question: {question}
|
186 |
|
187 |
+
context: {context}
|
188 |
|
189 |
Answer:
|
190 |
"""
|