Skip to content

Commit e22e851

Browse files
Fixed the reformulation to reduce dependencies on prev response
1 parent 6420470 commit e22e851

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
-154 Bytes
Binary file not shown.

FASTAPI-DEPLOYMENT/rhl_fastapi_v2_modify.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ async def _background_update_and_save(user_id: str, user_message: str, bot_reply
266266
CLASSIFICATION RULES:
267267
- MEDICAL_QUESTION: any standalone question about medical facts, diagnoses, treatments, NEWBORN CARE, or women's health
268268
- MEDICAL_QUESTION : Even if user asks multiple times about the same MEDICAL TOPIC, it should be considered as a MEDICAL_QUESTION
269-
- FOLLOW_UP: short responses to previous assistant suggestions (yes, sure, prevention please, etc.) or followup up symptoms, complications, procedures about previous answwer
269+
- FOLLOW_UP: short responses to previous assistant suggestions (yes, sure, prevention please, etc.)
270270
- CHITCHAT: greetings, thanks, smalltalk, profanity, non-medical topics, or explicit "stop" requests OR ANYTHING WHICH IS NON-MEDICAL OR NON_FOLLOWUP
271271
272272
REFORMULATION RULES:
@@ -277,7 +277,6 @@ async def _background_update_and_save(user_id: str, user_message: str, bot_reply
277277
- Correct spelling/abbreviations when meaning changes
278278
- Expand medical abbreviations (IUFD -> Intrauterine fetal death)
279279
- Keep rewritten_query concise and medically precise
280-
- If followup is symptoms, complication,procedure pair it with previous answer
281280
282281
EXAMPLES:
283282

0 commit comments

Comments
 (0)