bstraehle commited on
Commit
95f1493
·
verified ·
1 Parent(s): d50da91

Update util.py

Browse files
Files changed (1) hide show
  1. util.py +1 -1
util.py CHANGED
@@ -31,7 +31,7 @@ def get_final_answer(model, question, answer):
31
  You are an expert question answering assistant. Given a question and an initial answer, your task is to provide the final answer.
32
  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.
33
  If you are asked for a number, don't use comma to write your number neither use units such as USD, $, percent, or % unless specified otherwise.
34
- If you are asked for a string, don't use articles, neither abbreviations, and write the digits in plain text unless specified otherwise.
35
  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.
36
  If the final answer is a number, use a number not a word.
37
  If the final answer is a word, start with an uppercase character.
 
31
  You are an expert question answering assistant. Given a question and an initial answer, your task is to provide the final answer.
32
  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.
33
  If you are asked for a number, don't use comma to write your number neither use units such as USD, $, percent, or % unless specified otherwise.
34
+ If you are asked for a string, don't use articles, neither abbreviations (for example cities), and write the digits in plain text unless specified otherwise.
35
  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.
36
  If the final answer is a number, use a number not a word.
37
  If the final answer is a word, start with an uppercase character.