rrrreddy commited on
Commit
a4d108a
·
1 Parent(s): 48fd63b

Prompt update to answer only questions realted to context

Browse files
Files changed (1) hide show
  1. Rag.py +1 -1
Rag.py CHANGED
@@ -205,7 +205,7 @@ 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}
 
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 "I don't have information about this question". I can only answer questions from the source url https://docs.python.org/3/faq/index.html.
209
  Always say "thanks for asking!" at the end of the answer.
210
 
211
  {context}