LLM Classification Chaos: How Embracing Complexity Improved Accuracy
summary
NAICS classification scales from 1,000 fuzzy codes into a retrieval problem by expanding labels into ~20,000 descriptors then embedding them in a vector store (Chroma DB / FAISS) and using retrieval‑augmented LLM ranking. The pipeline synthesizes compact business profiles from web data, measures annotator disagreement (≈20% at top level, under 70% at six‑digit resolution) to set performance ceilings, and returns coherent ranked codes, cutting error rate in half and operating at about 1¢ per case.
AI-written summary · about
chapters (9)
- 0:00Introduction to insurance classification
- 2:13Challenges in business classification
- 6:11Data scarcity and imbalance issues
- 9:02Avoiding embarrassing mistakes
- 11:57Solution inspired by search engines
- 16:18Generating precise search queries
- 17:43Vector search and granular categories
- 19:33LLM ranking with confidence scores
- 21:41Future directions and summary
related talks
44mProduction-Grade LLMs & AI Agents
30mLLM Revolution: Necessity or Excess? A Study of the Most Efficient Solutions
17mFrom messy to meaningful data: LLM-powered classification in R
30mLLMs: Beyond the Hype - A Practical Journey to Scale
56mDehumanizing Agents: Why Explainability is Crucial in the LLM Era
30mLLM-Based Recommendation Systems
30mWhere there's a will, there's a way: The mad genius of LLMs as a classifiers
40mThe causality trap: why your LLM sounds smart but thinks shallow
