Spaces:
Paused
Paused
Update util.py
Browse files
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.
|