Update app.py
Browse files
app.py
CHANGED
@@ -177,10 +177,15 @@ def create_conversational_rag_chain(retriever):
|
|
177 |
verbose=False,
|
178 |
)
|
179 |
|
180 |
-
template = """
|
181 |
-
|
182 |
-
Question: {question}
|
|
|
|
|
|
|
|
|
183 |
"""
|
|
|
184 |
prompt = ChatPromptTemplate.from_template(template)
|
185 |
|
186 |
|
|
|
177 |
verbose=False,
|
178 |
)
|
179 |
|
180 |
+
template = """You are an assistant for question-answering tasks. Use the following pieces of retrieved context to answer the question. If you don't know the answer, just say that you don't know. Use three sentences maximum and keep the answer concise.
|
181 |
+
|
182 |
+
Question: {question}
|
183 |
+
|
184 |
+
Context: {context}
|
185 |
+
|
186 |
+
Answer:
|
187 |
"""
|
188 |
+
|
189 |
prompt = ChatPromptTemplate.from_template(template)
|
190 |
|
191 |
|