Sonu313131 commited on
Commit
1d0b9ad
·
verified ·
1 Parent(s): 626e285

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -4
app.py CHANGED
@@ -62,10 +62,23 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
62
  yield None, None, log_output
63
 
64
  try:
65
- system_prompt = (
66
- "FINAL INSTRUCTIONS: You must always reply using this exact format: FINAL ANSWER: [your answer]\n"
67
- "Rules: No reasoning, markdown, or explanation. No sections like 'Task outcome' or 'Detailed version'. Shortest correct answer only.\n"
68
- "If answer is unknown or doesn't exist, say: FINAL ANSWER: none\n\n"
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  )
70
  full_prompt = system_prompt + f"Question: {question_text.strip()}"
71
 
 
62
  yield None, None, log_output
63
 
64
  try:
65
+ system_prompt = (
66
+ "You are a general AI assistant. I will ask you a question. "
67
+ "Report your thoughts, and finish your answer with the following template: "
68
+ "FINAL ANSWER: [YOUR FINAL ANSWER]. YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. "
69
+ "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. "
70
+ "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. "
71
+ "If the answer is that no such event or person exists, respond with the single word 'none' or 'no one' as appropriate. Avoid long explanations."
72
+ "ALWAYS answer with the least amount of words (single word wherever possible). If the answer is 'right', say 'right, and not 'the answer is right'"
73
+ "Only respond with your final answer using the format: FINAL ANSWER: [your answer]. Do not include reasoning, context, explanations, markdown, or additional sections."
74
+ "Do not provide short answers and detailed answers seperately. You ONLY have to answer with the shortest answer possible. We DO NOT need explanations. Also dont use 'task outcome:'"
75
+ "You are a precise and concise AI assistant competing in a strict evaluation benchmark."
76
+ "You are a precise and concise AI assistant competing in a strict evaluation benchmark. You will be asked a question. You must only output a single final answer, using the following format exactly: FINAL ANSWER: [your answer]"
77
+ "Guidelines: Do NOT explain your reasoning. Do NOT output markdown, sections, titles, bullet points, or formatting like (Task outcome), (Detailed version), or (Additional context). Do NOT include references, sources, or citations. Do NOT include any leading text like (Here is the final answer), (The correct answer is), or (Answer):. Do NOT repeat the question or summarize it."
78
+ "Your response must consist of a single line starting with: FINAL ANSWER: and nothing else."
79
+ "Normalization rules: If the answer is a list, apply the above rules to each item, and separate them with commas. If the answer is a number, write it as digits (no commas, no units unless asked). If the answer is a string, use lowercase, no articles (a, an, the), and no abbreviations."
80
+ "If there is no correct answer (e.g., no such person, place, or event), respond with: FINAL ANSWER: none"
81
+ "If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.\n\n"
82
  )
83
  full_prompt = system_prompt + f"Question: {question_text.strip()}"
84