Update app.py
Browse files
app.py
CHANGED
@@ -174,17 +174,13 @@ def create_conversational_rag_chain(retriever):
|
|
174 |
verbose=False,
|
175 |
)
|
176 |
|
177 |
-
template = """
|
|
|
178 |
|
179 |
-
|
180 |
-
|
181 |
-
When answering, prioritize including all relevant details from the context to support your response. Avoid yes/no answers or simple options (A, B, etc.).
|
182 |
-
|
183 |
-
**question:** {question}
|
184 |
-
**context:** {context}
|
185 |
-
|
186 |
"""
|
187 |
prompt = ChatPromptTemplate.from_template(template)
|
|
|
188 |
|
189 |
|
190 |
|
|
|
174 |
verbose=False,
|
175 |
)
|
176 |
|
177 |
+
template = """Answer the question based only on the following context:
|
178 |
+
{context}
|
179 |
|
180 |
+
Question: {question}
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
"""
|
182 |
prompt = ChatPromptTemplate.from_template(template)
|
183 |
+
|
184 |
|
185 |
|
186 |
|