Jev vs Logistic Regression vs DistilBERT | Intent Classification Without LLMs
When a user sends a natural-language request to an Agentic AI system, one of the first decisions is often: **what is the user's intent, and which agent or workflow should handle it?** The obvious solution is to use an LLM. But do we really need an LLM for every routing decision? 00:00 Intro 01:05 Access this code 01:31 Training a ML Model 08:13 Fine-Tuning a transformer model 13:32 Decision Model - Jev 16:07 Production Tip In this video, I implement and compare three different approaches for production intent classification using the same banking use case: ✅ TF-IDF + Logistic Regression — traditional machine-learning classification ✅ DistilBERT — fine-tuning a pretrained transformer for intent classification ✅ Jev — a decision model for bounded semantic decisions We’ll look at how each technique works, what data it needs, how the implementation differs, and where each approach makes sense in a production AI or Agentic system. We’ll also discuss an important production pattern: **Use a fast, specialized classifier for confident routing and bring in an LLM only as a fallback for ambiguous requests.** The goal is not to avoid LLMs. The goal is to use the **right level of intelligence for each decision in the system**. 🎥 Want to understand model training from the ground up? Training a Neural Network: https://youtu.be/A303EcIvSss 🚀 Want access to my AI projects, complete code, documentation, and member-only videos on production AI engineering? Join the channel membership: https://www.youtube.com/channel/UCAHa1-TnXAJrkDVMHbcP1Sw/join #AgenticAI #AIEngineering #IntentClassification #MachineLearning #DistilBERT #Jev #LLM #ProductionAI…more
When a user sends a natural-language request to an Agentic AI system, one of the first decisions is often: **what is the user's intent, and which agent or workflow should handle it?** The obvious solution is to use an LLM. But do we really need an LLM for every routing decision? 00:00 Intro 01:05 Access this code 01:31 Training a ML Model 08:13 Fine-Tuning a transformer model 13:32 Decision Model - Jev 16:07 Production Tip In this video, I implement and compare three different approaches for production intent classification using the same banking use case: ✅ TF-IDF + Logistic Regression — traditional machine-learning classification ✅ DistilBERT — fine-tuning a pretrained transformer for intent classification ✅ Jev — a decision model for bounded semantic decisions We’ll look at how each technique works, what data it needs, how the implementation differs, and where each approach makes sense in a production AI or Agentic system. We’ll also discuss an important production pattern: **Use a fast, specialized classifier for confident routing and bring in an LLM only as a fallback for ambiguous requests.** The goal is not to avoid LLMs. The goal is to use the **right level of intelligence for each decision in the system**. 🎥 Want to understand model training from the ground up? Training a Neural Network: https://youtu.be/A303EcIvSss 🚀 Want access to my AI projects, complete code, documentation, and member-only videos on production AI engineering? Join the channel membership: https://www.youtube.com/channel/UCAHa1-TnXAJrkDVMHbcP1Sw/join #AgenticAI #AIEngineering #IntentClassification #MachineLearning #DistilBERT #Jev #LLM #ProductionAI