Spaces:
Sleeping
Sleeping
prompt change
Browse files
app.py
CHANGED
|
@@ -416,39 +416,29 @@ class SlpMultiAgent:
|
|
| 416 |
None,
|
| 417 |
lambda: manager_agent.run(f"""
|
| 418 |
Question: {short_question}
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
Available tools:
|
| 428 |
- google_search(query): Search the web
|
| 429 |
- math_calculator(expression): Calculate math
|
| 430 |
- file_processor(action, data): Handle files
|
| 431 |
- knowledge_base(topic): Get knowledge
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
NO complex code execution. Use tools directly.
|
| 444 |
-
|
| 445 |
-
Take your time and think every step out, be confident and precise.
|
| 446 |
-
|
| 447 |
-
Google should be able to answer all these questions and you have access to it.
|
| 448 |
-
|
| 449 |
-
They are simple yet tricky questions, so be careful and double check your answers. Make sure to use google_search for any factual question.
|
| 450 |
-
|
| 451 |
-
always provide a final_answer in the format final_answer("your answer here") when you have the answer.
|
| 452 |
""")
|
| 453 |
)
|
| 454 |
break # Success, exit retry loop
|
|
|
|
| 416 |
None,
|
| 417 |
lambda: manager_agent.run(f"""
|
| 418 |
Question: {short_question}
|
| 419 |
+
|
| 420 |
+
INSTRUCTIONS:
|
| 421 |
+
- For every question, you MUST call the most appropriate tool to get the answer.
|
| 422 |
+
- After calling the tool, extract the answer from its output.
|
| 423 |
+
- You MUST call final_answer('...') with ONLY the answer (no explanation, no extra text).
|
| 424 |
+
- If you cannot answer, call final_answer("I don't know").
|
| 425 |
+
- Do NOT explain your reasoning, do NOT describe your process, do NOT output anything except the final_answer call.
|
| 426 |
+
|
| 427 |
Available tools:
|
| 428 |
- google_search(query): Search the web
|
| 429 |
- math_calculator(expression): Calculate math
|
| 430 |
- file_processor(action, data): Handle files
|
| 431 |
- knowledge_base(topic): Get knowledge
|
| 432 |
+
|
| 433 |
+
EXAMPLES:
|
| 434 |
+
Q: What is the capital of France?
|
| 435 |
+
A: final_answer('Paris')
|
| 436 |
+
Q: 2 + 2 = ?
|
| 437 |
+
A: final_answer('4')
|
| 438 |
+
Q: Who won the 2020 Olympics 100m?
|
| 439 |
+
A: final_answer('Lamont Marcell Jacobs')
|
| 440 |
+
|
| 441 |
+
STRICTLY FOLLOW THIS FORMAT. DO NOT OUTPUT ANYTHING ELSE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 442 |
""")
|
| 443 |
)
|
| 444 |
break # Success, exit retry loop
|