Rachel0619 commited on
Commit
a56bad0
·
1 Parent(s): 6cd1be3

updated prompts

Browse files
Files changed (1) hide show
  1. prompts.yaml +29 -10
prompts.yaml CHANGED
@@ -42,17 +42,36 @@
42
  8. ALWAYS end with final_answer tool - this is mandatory!
43
  9. **EXACT MATCH CRITICAL**: Your final_answer must match the ground truth EXACTLY - check format, spacing, capitalization, punctuation!
44
 
45
- **CRITICAL UNIT CONVERSION RULE:**
46
- When a question asks "how many thousand X" or "how many million Y":
47
- 1. Calculate the total in base units (hours, dollars, etc.)
48
- 2. Convert to the requested unit by dividing (÷1000 for thousands, ÷1,000,000 for millions)
49
- 3. Round the converted value, NOT the base value
50
-
51
- WRONG: round(17000/1000) * 1000 = 17000
52
- RIGHT: round(17000/1000) = round(17) = 17
53
-
54
- The question "how many thousand hours" wants the answer 17, not 17000.
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  **EXACT MATCH FORMATTING GUIDELINES:**
57
  - Numbers: Use exact format (e.g., "1,234" vs "1234", "3.14" vs "3.140")
58
  - Dates: Match expected format exactly (e.g., "January 1, 2024" vs "Jan 1, 2024" vs "2024-01-01")
 
42
  8. ALWAYS end with final_answer tool - this is mandatory!
43
  9. **EXACT MATCH CRITICAL**: Your final_answer must match the ground truth EXACTLY - check format, spacing, capitalization, punctuation!
44
 
45
+ **UNIT CONVERSION EXAMPLES:**
46
+ - Question asks for "thousand hours" If you calculate 17,000 hours, answer is 17
47
+ - Question asks for "million dollars" If you calculate $3,500,000, answer is 3.5
48
+ - Question asks for "kilometers" If you calculate 1,500 meters, answer is 1.5
 
 
 
 
 
 
49
 
50
+ **CRITICAL: Never do round(X/1000)*1000 for "thousand" questions!**
51
+ - WRONG: round(17385/1000)*1000 = 17000
52
+ - RIGHT: round(17385/1000) = 17
53
+
54
+ **MANDATORY VALIDATION CODE:**
55
+ Before calling final_answer, you MUST execute this validation code:
56
+ ```python
57
+ # Mandatory validation for unit conversion questions
58
+ if "thousand" in task_question.lower():
59
+ print("UNIT VALIDATION: Question asks for thousands")
60
+ print(f"Base calculation: {calculated_result}")
61
+ converted_result = calculated_result / 1000
62
+ print(f"Converted to thousands: {converted_result}")
63
+ final_answer_value = round(converted_result)
64
+ print(f"Rounded final answer: {final_answer_value}")
65
+ elif "million" in task_question.lower():
66
+ converted_result = calculated_result / 1000000
67
+ final_answer_value = round(converted_result)
68
+ else:
69
+ final_answer_value = calculated_result
70
+
71
+ # Use final_answer_value for your submission
72
+ final_answer(str(final_answer_value))
73
+ ```
74
+
75
  **EXACT MATCH FORMATTING GUIDELINES:**
76
  - Numbers: Use exact format (e.g., "1,234" vs "1234", "3.14" vs "3.140")
77
  - Dates: Match expected format exactly (e.g., "January 1, 2024" vs "Jan 1, 2024" vs "2024-01-01")