You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: new_architecture_v4.py
+17-7Lines changed: 17 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -131,8 +131,11 @@ def get_chat_context():
131
131
- FOLLOW_UP: short answers to a previous assistant suggestion, e.g. assistant asked "Would you like to know about malaria prevention?" and user replies "yes" or "prevention please" -> FOLLOW_UP.
132
132
- CHITCHAT: greetings, thanks, smalltalk, profanity, or explicit "stop" requests, anything not medical_question or follow up -> CHITCHAT.
133
133
- MEDICAL_QUESTION: any standalone question that asks for medical facts, diagnoses, treatments, or definitions.
134
+
- MEDICAL_QUESTION : any medical word or phrase in the question, even if spellings is mis-spelled or mis-phrased to a medical content
134
135
135
136
Examples:
137
+
138
+
136
139
chat_history: "Assistant: Would you like to know about jaundice?"
137
140
question: "yes"
138
141
-> {{"label":"FOLLOW_UP","reason":"affirmation to assistant suggestion"}}
0 commit comments