Spaces:
Sleeping
Sleeping
YanBoChen
commited on
Commit
·
9731a88
1
Parent(s):
a50be9b
fix(MedicalAdviceGenerator): update fallback token limits and response guidelines for improved clarity and guidance
Browse files- src/generation.py +4 -4
src/generation.py
CHANGED
@@ -36,8 +36,8 @@ FALLBACK_TIMEOUTS = {
|
|
36 |
}
|
37 |
|
38 |
FALLBACK_TOKEN_LIMITS = {
|
39 |
-
"primary":
|
40 |
-
"fallback_1":
|
41 |
"fallback_2": 0 # Template-based, no LLM tokens
|
42 |
}
|
43 |
|
@@ -329,9 +329,9 @@ class MedicalAdviceGenerator:
|
|
329 |
• Reference evidence from above sources
|
330 |
• Emphasize clinical judgment
|
331 |
|
332 |
-
IMPORTANT: Keep response
|
333 |
|
334 |
-
|
335 |
|
336 |
return prompt
|
337 |
|
|
|
36 |
}
|
37 |
|
38 |
FALLBACK_TOKEN_LIMITS = {
|
39 |
+
"primary": 1200, # Full comprehensive medical advice
|
40 |
+
"fallback_1": 600, # Concise medical guidance
|
41 |
"fallback_2": 0 # Template-based, no LLM tokens
|
42 |
}
|
43 |
|
|
|
329 |
• Reference evidence from above sources
|
330 |
• Emphasize clinical judgment
|
331 |
|
332 |
+
IMPORTANT: Keep response under 1000 words. Use concise numbered points. For complex cases with multiple conditions, address the most urgent condition first, then relevant comorbidities. Prioritize actionable clinical steps over theoretical explanations.
|
333 |
|
334 |
+
Your response should provide practical clinical guidance suitable for immediate bedside application with appropriate medical caution."""
|
335 |
|
336 |
return prompt
|
337 |
|