MP44's picture
Upload 14 files
d51135f verified
raw
history blame contribute delete
329 Bytes
def detect_intent(question: str) -> str:
q = question.lower()
if "appointment" in q or "follow up" in q:
return "appointment"
if "how serious" in q or "severity" in q or "risk" in q:
return "severity"
if "why" in q or "explain" in q:
return "explanation"
return "unknown"