Commit cc2417d
fix: use unified classifier in intent classification API when available (#320)
The Classification API's /api/v1/classify/intent endpoint was returning
placeholder "general" category responses with 0.5 confidence instead of
performing actual classification using the unified classifier.
Changes:
- Update handleIntentClassification() to check for unified classifier availability first
- Use ClassifyIntentUnified() when unified classifier is available
- Fall back to legacy ClassifyIntent() when unified classifier not available
- Maintain backward compatibility with existing API contract
This resolves the issue where the single classification API always returned
hardcoded placeholder responses instead of performing actual BERT-based
classification.
Fixes #303
Signed-off-by: Yossi Ovadia <[email protected]>
Co-authored-by: Huamin Chen <[email protected]>1 parent 7ee1054 commit cc2417d
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
236 | 245 | | |
237 | 246 | | |
238 | 247 | | |
| |||
0 commit comments