ArturG9 commited on
Commit
a34af5b
1 Parent(s): 0007508

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -177,10 +177,15 @@ def create_conversational_rag_chain(retriever):
177
  verbose=False,
178
  )
179
 
180
- template = """Answer the question using natural language, based only on following context:
181
- {context}. Be consise.
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