Backend / src /services /intent-classifier.service.ts

Commit History

Refactor intent classification logic in IntentClassifierService to prioritize image presence and improve casual greeting detection. Introduce a structured priority system for intent classification, enhancing accuracy for triage and disease information queries while ensuring casual greetings are only identified when appropriate. Update the isCasualGreeting method to exclude medical terms from greeting detection.
80b0d14

Cuong2004 commited on

Implement intent classification for casual greetings in the IntentClassifierService and update MedagenAgent to route user queries based on classified intent. Enhance response handling in triage routes to utilize markdown messages when available. Extend TriageResult type to include a message field for markdown responses from the LLM.
0c00ee2

Cuong2004 commited on

fix bug
3e12ae4

Cuong2004 commited on