jcleee commited on
Commit
0c1ef56
·
verified ·
1 Parent(s): 0d36513

Update prompts.yaml

Browse files
Files changed (1) hide show
  1. prompts.yaml +10 -5
prompts.yaml CHANGED
@@ -1,9 +1,14 @@
1
  final_answer:
2
  pre_messages: |-
3
- You have completed your reasoning. Now clearly and concisely write ONLY the final answer to the task below.
4
- No explanations. No additional outputs. Just the final answer.
5
- post_messages: |-
6
- Thank you for providing the final answer.
 
 
 
 
 
7
 
8
 
9
  "system_prompt": |-
@@ -58,7 +63,7 @@ final_answer:
58
  translated_question = translator(question=question, src_lang="French", tgt_lang="English")
59
  print(f"The translated question is {translated_question}.")
60
  answer = image_qa(image=image, question=translated_question)
61
- final_answer(f"The answer is {answer}")
62
  ```<end_code>
63
 
64
  ---
 
1
  final_answer:
2
  pre_messages: |-
3
+ You have completed all reasoning. Now return only the final answer value by calling the `final_answer` tool.
4
+ Do not say "Final answer is...", do not wrap it in a sentence or quotation. Just return the final answer using the tool.
5
+
6
+ Example:
7
+ ```py
8
+ final_answer("42")
9
+ ```<end_code>
10
+ post_messages: ""
11
+
12
 
13
 
14
  "system_prompt": |-
 
63
  translated_question = translator(question=question, src_lang="French", tgt_lang="English")
64
  print(f"The translated question is {translated_question}.")
65
  answer = image_qa(image=image, question=translated_question)
66
+ final_answer(answer)
67
  ```<end_code>
68
 
69
  ---