Q&A-1Decide whether a product needs RAG, fine-tuning, tools, or a base model.
Answer
Assume a customer-facing assistant over a private corpus, an eval set you can run, and metrics for accuracy, latency and cost per request. My decision order is base model first, RAG second, tools third, fine-tuning last: each step adds operational cost, and the earlier ones are cheap to reverse.
Start with a base model and a strong prompt. If it clears your bar on a 200-question eval set, stop. A large share of "we need RAG" requests are prompt problems.
Add RAG when the answer depends on facts the model wasn't trained on, facts that change, or you need citations. Mechanism: embed the corpus, retrieve top-k chunks by cosine similarity, put them in the context window. It changes what the model sees, not what it is, so updating knowledge is an index rebuild, not a training run. It cannot fix tone or output format.
Add tools when the answer requires an action or live computation: order status, refunds, current inventory, arithmetic over user data. The model emits a structured call, your code executes it, the result returns to context. This is the only option with side effects, so it's the only one that needs idempotency keys and an audit log.
Fine-tune when you need consistent behavior at scale (a fixed output schema, a domain tone, a classification head) or when you want to move a task from a frontier model to a smaller, cheaper one. It changes the weights, so it's the wrong tool for facts: knowledge baked into weights goes stale and can't be cited.
| Need | Option | Changes | Cost to change |
|---|---|---|---|
| Fresh/private facts, citations | RAG | context | index rebuild |
| Live data, side effects | Tools | context + action | code deploy |
| Fixed format/tone, cheaper serving | Fine-tune | weights | retrain |
| General knowledge | Base model | nothing | prompt edit |
Worked example (illustrative figures). Internal support assistant, 40k help articles, 12k tickets/month:
- Base model + prompt: 61% correct on a 200-question eval.
-
- RAG (chunks ~500 tokens, top-k=5, recall@5 = 88%): 84% correct; p50 latency 0.9s → 1.2s, retrieval adds ~40ms.
-
- tools (order lookup, refund): 92% of the ticket mix resolved; one extra round trip, ~300ms.
-
- fine-tune a 7B model on 5k labeled pairs: 98% valid JSON vs 91% for the frontier model, serving cost down roughly 10x.
Failure modes and detection.
- Retrieval miss: at recall@5 = 88%, 12% of questions never had the answer in context. Log "answer absent from retrieved chunks" on a labeled set; fix with hybrid BM25 + embeddings or better chunking.
- Stale index: docs change daily, index rebuilds weekly → up to 7 days stale. Track index lag as a metric.
- Fine-tuned staleness: the model confidently quotes a deprecated price. Re-run a regression eval on every doc change.
- Tool errors: schema validation failures, timeouts, duplicate refunds from retries. Validate arguments before execution, use idempotency keys, alert on tool error rate.
When not to. Don't fine-tune to add facts: use RAG. Don't RAG a corpus that fits in the prompt (under ~20k tokens: just paste it). Don't add a tool for arithmetic the model already does reliably; the call adds latency and a failure point.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.