Views
No views yet
1use candle_semantic_router::classifiers::lora::IntentLoRAClassifier;
2
3let classifier = IntentLoRAClassifier::new("path/to/model", true)?;
4let result = classifier.classify_intent("What is photosynthesis?")?;
5println!("Intent: {}, Confidence: {:.1}%", result.intent, result.confidence * 100.0);| ID | Category |
|---|---|
| 0 | biology |
| 1 | business |
| 2 | chemistry |
| 3 | computer science |
| 4 | economics |
| 5 | engineering |
| 6 | health |
| 7 | history |
| 8 | law |
| 9 | math |
| 10 | philosophy |
| 11 | physics |
| 12 | psychology |
| 13 | other |