rrrreddy commited on
Commit
03471c4
·
1 Parent(s): ba6ac1d

prompt update

Browse files
Files changed (1) hide show
  1. Rag.py +2 -3
Rag.py CHANGED
@@ -204,9 +204,8 @@ from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
204
  parser = StrOutputParser()
205
 
206
  template = """Use the following pieces of context to answer the question at the end.
207
- If you don't know the answer, just say that you don't know, don't try to make up an answer.
208
- Only answer the question from the context don't provide additional context from the model.
209
- Use three sentences maximum and keep the answer as concise as possible.
210
  Always say "thanks for asking!" at the end of the answer.
211
 
212
  {context}
 
204
  parser = StrOutputParser()
205
 
206
  template = """Use the following pieces of context to answer the question at the end.
207
+ Only answer the question from the context don't generate any additional infrormation.
208
+ If you don't get enough information from the context, just say that you don't know.
 
209
  Always say "thanks for asking!" at the end of the answer.
210
 
211
  {context}