ArturG9 commited on
Commit
0a83b94
·
verified ·
1 Parent(s): 06674c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -174,10 +174,13 @@ def create_conversational_rag_chain(retriever):
174
  verbose=False,
175
  )
176
 
177
- template = """Answer the question in a natural language, based only on the following context:
178
- {context}
179
 
180
- Question: {question}
 
 
 
 
181
  """
182
  prompt = ChatPromptTemplate.from_template(template)
183
 
 
174
  verbose=False,
175
  )
176
 
177
+ 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 six sentences maximum and keep the answer concise.
 
178
 
179
+ Question: {question}
180
+
181
+ Context: {context}
182
+
183
+ Answer:
184
  """
185
  prompt = ChatPromptTemplate.from_template(template)
186