ML basics
Baselines
Always compare with the simple thing: rules, BM25, logistic regression, the current human process.
What it is and why it exists
A model is only good relative to an alternative. Baselines (keyword rules, BM25 retrieval, logistic regression on embeddings, the current manual process) tell you whether the complex system earns its cost — and are often good enough.
Quick prototype
Compare with nothing.
In production, at scale
Report every system against a simple baseline and the current process on the same eval set, with cost and latency.
Vendors and tools
| scikit-learn / rank_bm25 | Quick baselines |
|---|
How it fails
- A complex agent that BM25 + a template would beat
What the interviewer asks next
Why is BM25 a good RAG baseline?
It’s cheap, strong on exact terms, needs no embeddings, and tells you how much dense retrieval actually adds on your corpus.