tatianija commited on
Commit
47e3877
·
verified ·
1 Parent(s): 8dbf557

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -633,6 +633,7 @@ Answer with just "YES" only if your general knowledge is insufficient to answer
633
  full_context = f"""Question: {question} Search Results: {search_results} {attachment_context}{url_context}"""
634
 
635
  answer_prompt = f"""\no_think You are a general AI assistant. I will ask you a question.
 
636
  Based on the context sections below, provide an answer to the question.
637
  If the search results don't fully answer the question, you can supplement with your general knowledge.
638
  Your ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
@@ -657,8 +658,10 @@ Answer with just "YES" only if your general knowledge is insufficient to answer
657
  full_context = f"""Question: {question} {attachment_context} {url_context}"""
658
 
659
  answer_prompt = f"""\no_think You are a general AI assistant. I will ask you a question.
 
 
660
  Based on the context sections below, provide an answer to the question.
661
- If the search results don't fully answer the question, you can supplement with your general knowledge.
662
  Your ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
663
  If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise.
664
  If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise.
 
633
  full_context = f"""Question: {question} Search Results: {search_results} {attachment_context}{url_context}"""
634
 
635
  answer_prompt = f"""\no_think You are a general AI assistant. I will ask you a question.
636
+ The question might refer to external information or attachment. These are provided to you as a context below.
637
  Based on the context sections below, provide an answer to the question.
638
  If the search results don't fully answer the question, you can supplement with your general knowledge.
639
  Your ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
 
658
  full_context = f"""Question: {question} {attachment_context} {url_context}"""
659
 
660
  answer_prompt = f"""\no_think You are a general AI assistant. I will ask you a question.
661
+
662
+ The question might refer to attachment. In that case the required information from the attachment is provided to you as a context below.
663
  Based on the context sections below, provide an answer to the question.
664
+ If the context doesn't fully answer the question, you can supplement with your general knowledge.
665
  Your ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
666
  If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise.
667
  If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise.