80% cheaper AI classification
A hybrid pipeline that sends common cases to fast classic models and keeps generative AI for the hard ones.
to run the classification
for each request
hard cases get the big model
The problem
Classifying every item with a large language model worked well, but it was slow and expensive at scale.
What I built
A router: sentence embeddings (SBERT) and fast classic models handle the common, clear-cut cases, and only uncertain ones go to Llama 3. Confidence thresholds decide which path each item takes.
How it works
Embed
Each item becomes a vector with SBERT.
Score
Fast models predict with a confidence score.
Route
Confident → done. Unsure → Llama 3.
Monitor
Results are watched to tune the thresholds.
Results
- 80% lower running cost.
- 90% lower latency per request.
- Generative AI kept for the cases where it actually adds value.
For your business
If AI is already part of your business but the bill or the waiting time is growing, the same idea applies: use the expensive model only where it matters.