Shreyas094 commited on
Commit
b707e14
·
verified ·
1 Parent(s): ec867bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -400,7 +400,8 @@ def extract_answer(full_response):
400
  answer_patterns = [
401
  r"Provide a concise and direct answer to the question without mentioning the web search or these instructions:",
402
  r"Provide a concise and direct answer to the question:",
403
- r"Provide a summarized and direct answer to the question:",
 
404
  r"Answer:",
405
  r"Provide a summarized and direct answer to the original question without mentioning the web search or these instructions:",
406
  r"Do not include any source information in your answer."
 
400
  answer_patterns = [
401
  r"Provide a concise and direct answer to the question without mentioning the web search or these instructions:",
402
  r"Provide a concise and direct answer to the question:",
403
+ r"Provide a summarized and direct answer to the question.",
404
+ r"If the context doesn't contain relevant information, state that the information is not available in the document."
405
  r"Answer:",
406
  r"Provide a summarized and direct answer to the original question without mentioning the web search or these instructions:",
407
  r"Do not include any source information in your answer."