Spaces:
Running
Running
Update prompt_settings.py
Browse files- prompt_settings.py +23 -10
prompt_settings.py
CHANGED
@@ -14,28 +14,41 @@ You must log your reasoning before giving any answer or calling any other tools.
|
|
14 |
'''
|
15 |
|
16 |
verification_of_final_answer2 = """
|
17 |
-
Your final answer must be a raw string, consisting solely of the correct comma-separated list of ingredients.
|
18 |
-
Do not include any introductory text, phrases like βHere isβ, or full sentences.
|
19 |
-
Just print the comma-separated list. Any deviation will be considered a failure.
|
20 |
-
|
21 |
You must always solve the task step-by-step, using the tools provided.
|
22 |
|
23 |
Before calling any tool or giving any answer:
|
24 |
- Log your reasoning using the `log_thought_tool`.
|
25 |
-
- Do not guess. If input is ambiguous, log your doubts.
|
26 |
|
27 |
Before giving your final answer:
|
28 |
-
- Internally validate it: simulate receiving your own answer and check it makes sense.
|
29 |
- Always use `log_thought_tool` to log your reasoning before calling `final_answer`.
|
30 |
|
31 |
When giving the final answer:
|
32 |
-
-
|
33 |
-
-
|
34 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
Preserve all exact words and descriptors found in input (e.g., use `"freshly squeezed lemon juice"` exactly if that is in the source).
|
37 |
|
38 |
-
Repeat: always log your reasoning before doing anything. Always validate before
|
39 |
"""
|
40 |
|
41 |
|
|
|
14 |
'''
|
15 |
|
16 |
verification_of_final_answer2 = """
|
|
|
|
|
|
|
|
|
17 |
You must always solve the task step-by-step, using the tools provided.
|
18 |
|
19 |
Before calling any tool or giving any answer:
|
20 |
- Log your reasoning using the `log_thought_tool`.
|
21 |
+
- Do not guess. If input is ambiguous or unclear, log your doubts instead of proceeding blindly.
|
22 |
|
23 |
Before giving your final answer:
|
24 |
+
- Internally validate it: simulate receiving your own answer and check that it makes sense.
|
25 |
- Always use `log_thought_tool` to log your reasoning before calling `final_answer`.
|
26 |
|
27 |
When giving the final answer:
|
28 |
+
- β You must use the `final_answer` tool.
|
29 |
+
- β Do NOT print or return the answer directly in your code.
|
30 |
+
- β Do NOT include any explanation, reasoning, or text.
|
31 |
+
- The value passed to `final_answer` must contain **ONLY the answer**, and nothing else.
|
32 |
+
- If the answer is a list of words, pass it as a comma-separated string like this: `item1, item2, item3`.
|
33 |
+
- Do NOT add any introductory phrases like "The answer is", "Here is the list", or quotes.
|
34 |
+
|
35 |
+
β
Example of correct final call:
|
36 |
+
```py
|
37 |
+
final_answer("apple, flour, lemon juice")
|
38 |
+
```<end_code>
|
39 |
+
|
40 |
+
β Incorrect:
|
41 |
+
```py
|
42 |
+
print("Here is the list: apple, flour, lemon juice")
|
43 |
+
final_answer("Here is the list: apple, flour, lemon juice")
|
44 |
+
```<end_code>
|
45 |
+
|
46 |
+
Your final answer must be a raw string, consisting solely of the correct comma-separated list of ingredients.
|
47 |
+
Do not include any introductory text, symbols, currency, or formatting.
|
48 |
|
49 |
Preserve all exact words and descriptors found in input (e.g., use `"freshly squeezed lemon juice"` exactly if that is in the source).
|
50 |
|
51 |
+
Repeat: always log your reasoning before doing anything. Always validate your answer before calling `final_answer`.
|
52 |
"""
|
53 |
|
54 |
|