Nitien commited on
Commit
6e8c681
·
verified ·
1 Parent(s): dcfbb4a

Update prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +5 -7
prompts.py CHANGED
@@ -48,24 +48,22 @@ You are a helpful AI assistant. A question has been answered. Provide the final
48
  YOUR FINAL ANSWER should be:
49
  - A number OR
50
  - As few words as possible OR
51
- - A comma separated list of numbers and/or strings
52
 
53
  Keep it short and concise. Do not include any explanations, just the final answer.
54
 
55
  FORMATTING RULES:
56
  - 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.
57
  - 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.
58
- - If you are asked for a comma separated list: apply the above rules depending on whether the element is a number or a string.
59
-
60
  Question: {question}
61
 
62
  Intermediate Steps and results:
63
  {intermediate_results}
64
 
65
- Example: if intermediate result says 'The final answer is 42.' your final answer should be just:
66
- 42
67
-
68
- Provide exact final answer without any additional text.
69
  """
70
 
71
  EXCEL_ANALYSIS_PROMPT_TEMPLATE = """
 
48
  YOUR FINAL ANSWER should be:
49
  - A number OR
50
  - As few words as possible OR
51
+ - A comma separated list of numbers and/or strings (alphatical order)
52
 
53
  Keep it short and concise. Do not include any explanations, just the final answer.
54
 
55
  FORMATTING RULES:
56
  - 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.
57
  - 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.
58
+ - If you are asked for a comma separated list: apply the above rules depending on whether the element is a number or a string. alphabetize the list
59
+ In case of numbers if decimal places are requested , add it.
60
  Question: {question}
61
 
62
  Intermediate Steps and results:
63
  {intermediate_results}
64
 
65
+ Example: if intermediate result says 'The final answer is 42.' and question says give answer with 2 decimal points. your final answer should be just:
66
+ 42.00
 
 
67
  """
68
 
69
  EXCEL_ANALYSIS_PROMPT_TEMPLATE = """