Spaces:
Running
Running
Commit
·
78eeae8
1
Parent(s):
8b26eda
update prompt
Browse files- endpoints_documentation.py +1 -1
- main.py +2 -1
endpoints_documentation.py
CHANGED
@@ -323,7 +323,7 @@ endpoints_documentation = {
|
|
323 |
"department": {
|
324 |
"type": "str",
|
325 |
"required": False,
|
326 |
-
"description": "Filter by department"
|
327 |
}
|
328 |
},
|
329 |
"response": {
|
|
|
323 |
"department": {
|
324 |
"type": "str",
|
325 |
"required": False,
|
326 |
+
"description": "Filter by department (must be in english, e.g. 'Cardiology', 'Dermatology')"
|
327 |
}
|
328 |
},
|
329 |
"response": {
|
main.py
CHANGED
@@ -69,7 +69,7 @@ class HealthcareChatbot:
|
|
69 |
self.model_name = "gemma3"
|
70 |
self.BASE_URL = 'https://ae84-197-54-54-66.ngrok-free.app'
|
71 |
self.headers = {'Content-type': 'application/json'}
|
72 |
-
self.user_id = '
|
73 |
self.max_retries = 3
|
74 |
self.retry_delay = 2
|
75 |
|
@@ -253,6 +253,7 @@ class HealthcareChatbot:
|
|
253 |
|
254 |
**STEP 5: Parameter Extraction (only if API_ACTION)**
|
255 |
- Extract parameter values from user query
|
|
|
256 |
- Use the CALCULATED dates/times from Step 2
|
257 |
- Convert all dates/times to ISO 8601 format (YYYY-MM-DDTHH:MM:SS)
|
258 |
- List any missing required parameters
|
|
|
69 |
self.model_name = "gemma3"
|
70 |
self.BASE_URL = 'https://ae84-197-54-54-66.ngrok-free.app'
|
71 |
self.headers = {'Content-type': 'application/json'}
|
72 |
+
self.user_id = '58d10b2d-2fa4-4545-8fb7-5c03efef5d3e'
|
73 |
self.max_retries = 3
|
74 |
self.retry_delay = 2
|
75 |
|
|
|
253 |
|
254 |
**STEP 5: Parameter Extraction (only if API_ACTION)**
|
255 |
- Extract parameter values from user query
|
256 |
+
- Translate the parameters value to English.
|
257 |
- Use the CALCULATED dates/times from Step 2
|
258 |
- Convert all dates/times to ISO 8601 format (YYYY-MM-DDTHH:MM:SS)
|
259 |
- List any missing required parameters
|