bstraehle commited on
Commit
8dde8b1
·
verified ·
1 Parent(s): 762c317

Update util.py

Browse files
Files changed (1) hide show
  1. util.py +2 -2
util.py CHANGED
@@ -15,8 +15,8 @@ def get_questions():
15
 
16
  def get_final_answer(question, initial_answer):
17
  prompt_template = """
18
- You are given a question and an initial answer.
19
- Your final answer must be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
20
  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.
21
  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.
22
  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.
 
15
 
16
  def get_final_answer(question, initial_answer):
17
  prompt_template = """
18
+ You are an expert GAIA benchmark question answering assistant, given a question and an initial answer.
19
+ Your final answer must be a number and/or string OR as few words as possible OR a comma separated list of numbers and/or strings.
20
  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.
21
  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.
22
  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.