Skip to content

Commit

Permalink
wip: started adding product_support to classifier
Browse files Browse the repository at this point in the history
  • Loading branch information
luandro committed Dec 16, 2024
1 parent f4bf838 commit 78666c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/ai_api/eda_ai_api/api/routes/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@
Choose between:
- discovery: For finding grant opportunities
- proposal: For writing grant proposals
- product_support: For product support
- onboarding: For getting help using the system
- heartbeat: For checking system health
User message: {message}
Return only one word (discovery/proposal/onboarding/heartbeat):"""
Return only one word (discovery/proposal/onboarding/heartbeat/product_support):"""

TOPIC_EXTRACTOR_TEMPLATE = """
Extract up to 5 most relevant topics for grant opportunity research from the user message.
Expand Down Expand Up @@ -161,6 +162,8 @@ def process_decision(decision: str, message: str) -> Dict[str, Any]:
.crew()
.kickoff()
)
elif decision == "product_support":
return {"redirect": "/product_support"}
elif decision == "heartbeat":
return {"is_alive": True}
elif decision == "onboarding":
Expand Down

0 comments on commit 78666c6

Please sign in to comment.