Spaces:
Running
Running
Commit
·
cdec7d3
1
Parent(s):
f5e9d3f
Update prompt 20000
Browse files
main.py
CHANGED
@@ -278,9 +278,13 @@ class HealthcareChatbot:
|
|
278 |
Now analyze the user query step by step and give me the JSON response.
|
279 |
|
280 |
**FINAL CHECK BEFORE OUTPUTTING:**
|
281 |
-
|
282 |
-
-
|
283 |
-
-
|
|
|
|
|
|
|
|
|
284 |
""",
|
285 |
input_variables=["user_query", "detected_language", "extracted_keywords",
|
286 |
"sentiment_analysis", "endpoints_documentation", "current_datetime",
|
|
|
278 |
Now analyze the user query step by step and give me the JSON response.
|
279 |
|
280 |
**FINAL CHECK BEFORE OUTPUTTING:**
|
281 |
+
🔍 **MANDATORY ARABIC DETECTION:**
|
282 |
+
- Look at your params object
|
283 |
+
- Search for these Arabic characters: ا ب ت ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ه و ي
|
284 |
+
- If you find ANY Arabic character, TRANSLATE IT IMMEDIATELY
|
285 |
+
- Do NOT output JSON until params is 100% English
|
286 |
+
|
287 |
+
**REMEMBER:** "دكتور احمد" MUST become "Dr. Ahmed" - NO EXCEPTIONS!
|
288 |
""",
|
289 |
input_variables=["user_query", "detected_language", "extracted_keywords",
|
290 |
"sentiment_analysis", "endpoints_documentation", "current_datetime",
|