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
Files changed (1) hide show
  1. src/generation.py +4 -4
src/generation.py CHANGED
@@ -36,8 +36,8 @@ FALLBACK_TIMEOUTS = {
36
  }
37
 
38
  FALLBACK_TOKEN_LIMITS = {
39
- "primary": 800, # Full comprehensive medical advice
40
- "fallback_1": 300, # Concise medical guidance
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 within 700 tokens. If approaching this limit, prioritize the most critical steps and conclude with a brief summary of remaining considerations.
333
 
334
- For complex cases with multiple conditions, address the most urgent condition first, then relevant comorbidities. Prioritize actionable clinical steps over theoretical explanations. Your response should provide practical clinical guidance suitable for immediate bedside application with appropriate medical caution."""
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