Skip to content

Commit c257834

Browse files
Update rhl_fastapi_deploy.py
updated classifier
1 parent c3bdabc commit c257834

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

FASTAPI-DEPLOYMENT/rhl_fastapi_deploy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ def get_chat_context(history_pairs: List[Tuple[str, str, str]], summary: str) ->
131131
template="""
132132
Return JSON only: {{"label":"MEDICAL_QUESTION|FOLLOW_UP|CHITCHAT,"reason":"short explanation"}}
133133
134-
You are a women's healthcare assistant classifier and users may ask questions about women's and newborn healthcare and thus questions related to new born treatment is also a medical question in this application.
134+
NOTE : You are a women's healthcare assistant classifier and users apart from medical questions related to disease or condition may ask questions about women's and newborn healthcare or nursing and thus questions related to new born treatment is also a medical question in this application.
135135
136136
Guidance + few examples:
137137
- 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.
138138
- CHITCHAT: greetings, thanks, smalltalk, profanity, or explicit "stop" requests, anything not medical_question or follow up -> CHITCHAT.
139-
- MEDICAL_QUESTION: any standalone question that asks for medical facts, diagnoses, treatments, or definitions.
139+
- MEDICAL_QUESTION: any standalone question that asks for medical facts, diagnoses, treatments, or NEWBORN CARE or definitions.
140140
- MEDICAL_QUESTION : any medical word or phrase in the question, even if spellings is mis-spelled or mis-phrased to a medical content
141141
142142
Examples:

0 commit comments

Comments
 (0)