Spaces:
Sleeping
Sleeping
Commit ·
fff116e
1
Parent(s): dd0fe1f
fix: escape curly braces in param extraction prompt to prevent format KeyError
Browse files- neuro_symbolic.py +1 -1
neuro_symbolic.py
CHANGED
|
@@ -69,7 +69,7 @@ CRITICAL RULES:
|
|
| 69 |
3. If user says "I'm a farmer with 3 acres", set "is_farmer": true, "land_size_hectares": 1.21 (1 acre = 0.4047 hectares).
|
| 70 |
4. If user says "SC category", set "caste_category": "SC".
|
| 71 |
5. Return ONLY valid JSON. No markdown, no explanation.
|
| 72 |
-
6. If NO parameters can be extracted, return: {}
|
| 73 |
|
| 74 |
User message: {user_message}"""
|
| 75 |
|
|
|
|
| 69 |
3. If user says "I'm a farmer with 3 acres", set "is_farmer": true, "land_size_hectares": 1.21 (1 acre = 0.4047 hectares).
|
| 70 |
4. If user says "SC category", set "caste_category": "SC".
|
| 71 |
5. Return ONLY valid JSON. No markdown, no explanation.
|
| 72 |
+
6. If NO parameters can be extracted, return: {{}}
|
| 73 |
|
| 74 |
User message: {user_message}"""
|
| 75 |
|