Combining LLMs with classic ML
For engineers
Embeddings as features, LLM-made labels, small-model-first cascades and reviewing agent-written ML code: the hybrid toolkit engineers use today
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
You have 500 labelled tickets and need a classifier that answers in milliseconds on a CPU. What is the most direct approach?
Check yourself · 2 of 5
An LLM labelled 20,000 emails and a classifier trained on them scores 95% on a held-out part of those same labels. What does the 95% measure?
Check yourself · 3 of 5
In a cascade, what decides which requests reach the LLM?
Check yourself · 4 of 5
An agent's churn model reports 0.99 AUC on its first run. What is the best first review step?
Check yourself · 5 of 5
A classifier was trained on vectors from one embedding model. Production now embeds with a different model. What happens?
Topics
- Embeddings as model features5 min read · Turn text into vectors once, then train a small classifier on them and compare it with prompting an LLM
- LLM-generated training labels5 min read · Label large datasets with an LLM, audit a blind human sample and set an agreement gate before training
- Cascades with small models first and LLM fallback5 min read · Route confident cases to a cheap trained model and uncertain ones to an LLM, and choose the cut-off from measured numbers
- Reviewing agent-written ML code5 min read · Check the split, the fitted steps, the features and the metric before you trust a score an agent reports
Start here
- Sentence Transformers documentation (opens in a new tab)DocsFree
How to encode sentences into embeddings and use them for classification, search and clustering.
- SetFit: few-shot text classification (Hugging Face docs) (opens in a new tab)DocsFree
Train a text classifier from a handful of labelled examples on top of sentence embeddings.
- ChatGPT Outperforms Crowd-Workers for Text-Annotation Tasks (opens in a new tab)PaperFree
A study comparing an LLM's labels with crowd-worker labels, and the cost and accuracy of each.
Helps to know first
110 questions · last verified 2026-12