Spaces:
Sleeping
Sleeping
Changed prompt
Browse files
app.py
CHANGED
|
@@ -40,34 +40,19 @@ class BasicAgent:
|
|
| 40 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 41 |
prompt = f"""You are an expert GAIA benchmark agent. Your job is to solve Level 1 GAIA questions with PERFECT formatting.
|
| 42 |
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
- Germany capital: Berlin
|
| 57 |
-
- Japan capital: Tokyo
|
| 58 |
-
- Basic math: 15×3=45, 100/4=25, etc.
|
| 59 |
-
|
| 60 |
-
FORMAT EXAMPLES (Copy these exactly):
|
| 61 |
-
Capital of France? → Paris
|
| 62 |
-
2024 Olympics host city? → Paris
|
| 63 |
-
Capital of Japan? → Tokyo
|
| 64 |
-
15 × 3? → 45
|
| 65 |
-
Paris population (millions)? → 2 million
|
| 66 |
-
USA capital? → Washington, D.C.
|
| 67 |
-
|
| 68 |
-
Question: {question}
|
| 69 |
-
|
| 70 |
-
Respond with ONLY the final answer."""
|
| 71 |
|
| 72 |
output = self.agent.run(prompt)
|
| 73 |
return str(output).strip()
|
|
|
|
| 40 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 41 |
prompt = f"""You are an expert GAIA benchmark agent. Your job is to solve Level 1 GAIA questions with PERFECT formatting.
|
| 42 |
|
| 43 |
+
CRITICAL RULES (Follow EXACTLY):
|
| 44 |
+
1. Answer with ONLY the final answer - NO "Final Answer:", NO reasoning, NO explanation
|
| 45 |
+
2. Use exact format: number, city name, short phrase, or comma-separated list
|
| 46 |
+
3. NO units unless asked ($, %, etc.)
|
| 47 |
+
4. NO articles ("the", "a", "an")
|
| 48 |
+
5. Spell out numbers in words when asked for text
|
| 49 |
+
6. For cities: full name, no abbreviations (Los Angeles, not LA)
|
| 50 |
+
|
| 51 |
+
Important: Do not hallucinate. Try to keep your answers based on facts as much as you can. If you dont know the answer dont hullucinate.
|
| 52 |
+
|
| 53 |
+
Question: {question}
|
| 54 |
+
|
| 55 |
+
Respond with ONLY the final answer."""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
output = self.agent.run(prompt)
|
| 58 |
return str(output).strip()
|