
Fine Tuning a Local LLM to Categorize Questions
<p>As a fun personal project, I have been working on a chatbot for answering general questions about my household on anything from maintenance questio...
ML engineers and developers building LLM-powered classification systems, particularly those working with large taxonomies or e-commerce product categorization at scale
This article describes a pattern where a small LLM generates plausible but fake category labels for a query instead of being constrained to a fixed taxonomy via structured outputs.
The hallucinated labels are resolved to real taxonomy entries by computing embedding similarity against pre-computed embeddings of valid classifications. The approach eliminates the need to ship large schema lists to the model and enables classification with cheaper models at scale.