A team once spent several lakh rupees fine-tuning a model on their product catalogue so the bot would "know the products". It learned to sound exactly like their catalogue — and then quoted prices that didn't exist, cited nothing, and needed retraining every time a price changed. They rebuilt it with RAG in two weeks. That story is the whole lesson, and some version of it is the most-asked question in GenAI interviews. By the end of this page you'll answer it with a framework, not a preference.
The real question hiding inside the question
"RAG or fine-tuning?" sounds like a comparison of two technologies. It isn't. It's a diagnostic question: what exactly is wrong with the model's output? Answer that, and the technology chooses itself.
There are only two kinds of wrong. Either the model doesn't know something (your policies, this week's prices, a client's contract), or it doesn't behave right (wrong tone, wrong format, wrong domain conventions). Those two failures have two different fixes, and mixing them up is the expensive mistake.
Knowledge vs behaviour — the whole framework
| Symptom | Type | Fix |
|---|---|---|
| "It doesn't know our refund window" | knowledge | RAG |
| "It quotes last year's prices" | knowledge (freshness) | RAG |
| "Answers must cite the source document" | knowledge (traceability) | RAG — fine-tuning cannot cite |
| "It writes casually; we need legal register" | behaviour | prompting → fine-tuning |
| "Output must always follow our 6-section template" | behaviour | prompting → fine-tuning |
| "It ignores our domain conventions" | behaviour | fine-tuning |
Fine-tuning teaches behaviour. RAG supplies knowledge. Prompting is the cheap first attempt at both. Say that sentence in an interview and you've answered the question before the follow-ups arrive.
Wait — why can't training just teach it the facts?
Because of what weights are. Training adjusts billions of numbers so the model's next-token predictions match patterns in the data. It is compression of patterns, not storage of records — there is no row in there saying "refund window = 30 days".
So after fine-tuning on your catalogue, the model has absorbed thestyle of your catalogue and a hazy sense of its content — rather like you remember a book you read last year. You'd recall the themes confidently and misquote the exact figures with equal confidence. That's exactly what the model does, and three consequences follow:
1 · Precision is unreliable — numbers, dates and names come out plausible rather than correct. 2 · Nothing is citable — the answer has no source, so nobody can verify it and no auditor will accept it. 3 · Updates cost a training run — one policy change, one retrain, one re-evaluation.
The comparison table interviewers want
| Prompting | RAG | Fine-tuning | |
|---|---|---|---|
| What it changes | instructions per request | information per request | the model's weights |
| Setup time | minutes | days | weeks (data is the bottleneck) |
| Update a fact | edit the prompt | re-index one file (minutes) | retrain |
| Citations | only if pasted in | native | impossible |
| Per-user access control | no | yes — filter at retrieval | no |
| Per-query cost | low | higher (context tokens) | lowest (short prompts) |
| Typical failure | inconsistency at scale | retrieval misses | forgetting, overfitting, stale facts |
When fine-tuning genuinely wins
This lesson isn't anti-tuning — a candidate who says "always RAG" is as wrong as one who says "always fine-tune". Fine-tuning is the right call when:
Behaviour must be reliable, not requested. A rigid regulator-approved template that prompting holds only 80% of the time becomes near-perfect after tuning on a few thousand real examples. The prompt has grown absurd. If every call carries 1,500 tokens of instructions and examples, tuning can compress that into learned behaviour — and then, the subtle part, a fine-tuned small model can often replace a large one, making tuning a cost optimization on top of RAG rather than a rival to it. Latency matters and prompts are long. Shorter prompts mean fewer input tokens and faster responses.
The hybrid answer (what production actually looks like)
Exam answers pick one. Real systems use all three, each doing what it does best: a carefully engineered system prompt for rules and format, RAG for the facts with citations, and — if scale justifies it — a LoRA fine-tune for the house voice or a strict output shape that prompting couldn't hold.
The build order never changes: prompt first, add RAG when facts are needed, fine-tune last — each step only after the previous one measurably falls short. (LoRA and PEFT at intuition level are covered in the GenAI course's fine-tuning lesson.)
Selection-round radar: the highest-scoring answer has four beats: (1) knowledge vs behaviour framework, (2) why facts in weights are fuzzy, unciteable and expensive to update, (3) when tuning genuinely wins — style, format, prompt compression, (4) production combines them. Add "and I'd try prompting first" and you've covered every follow-up they had planned.
The forgotten option: fine-tune the retriever
Everyone debates tuning the LLM. But if your problem is that recall@k is poor because your domain speaks a strange language — legal, medical, internal jargon — then the bottleneck is the embedding model, and that's what should be tuned. With real query→correct-document pairs from your logs, a tuned retriever can lift recall substantially, and every downstream metric improves with it.
Mentioning this unprompted is a genuine differentiator: it shows you diagnose which component is failing rather than reaching for the famous knob.
Common mistakes
- Fine-tuning to inject facts — the flagship mistake this whole lesson exists to prevent.
- Answering "always RAG" — behaviour problems don't respond to retrieval.
- Skipping prompting; a well-written system prompt kills most fine-tuning requests.
- Ignoring that the real fine-tuning bottleneck is quality training data, not GPUs.
- Forgetting that only RAG offers citations and per-user access control.
- Never considering that the retriever might be the component worth tuning.
Quick recap
| Concept | One-liner |
|---|---|
| The framework | knowledge → RAG · behaviour → fine-tune · always prompt first |
| Why not facts in weights | fuzzy, unciteable, retraining to update |
| RAG-only powers | freshness, citations, per-user access control |
| Fine-tuning wins | rigid format/style, prompt compression, smaller-model cost cuts |
| Production | prompt + RAG + (sometimes) LoRA, in that build order |
| Overlooked option | fine-tune the embedding model when retrieval is the bottleneck |
Practice Zone — PYQs from real selection rounds
Six MCQs and two tasks — four client scenarios (one of which needs neither technique), and a cost comparison with the deciding factor that isn't money.
A team fine-tuned a model on 5,000 support tickets and it now writes perfect support-style replies — but invents order numbers. What does this demonstrate?
Asked in

Which factor most strongly favours RAG over fine-tuning in an enterprise setting?
Asked in

When might fine-tuning genuinely REDUCE your RAG system's cost?
Asked in

"We'll fine-tune on our documents so we don't need a vector database" — the strongest single counter-argument is:
Asked in

What does a 'RAG + fine-tuning' hybrid typically look like in production?
Asked in

Fine-tuning the embedding model (rather than the LLM) is worth considering when:
Asked in

Hands-on tasks:
Recommend RAG, fine-tuning, both, or neither — with one line of reasoning: 1) A hospital assistant answering from constantly-updated treatment protocols. 2) A firm needing every output in a rigid regulator-approved template. 3) A startup whose bot answers general coding questions. 4) A bank needing product answers in the bank's tone, always citing the official brochure.
Asked in

A client's 2,000-page knowledge base changes weekly. Sketch the rough cost profile of (a) fine-tuning monthly vs (b) RAG, and state the deciding factor beyond money.
Asked in

FAQ
How much data does fine-tuning need?
Hundreds to a few thousand high-quality input→output pairs for behaviour tasks — and quality beats quantity decisively. If you can't assemble even a few hundred good examples, you're not ready to fine-tune, and few-shot prompting probably serves you better anyway.
Can fine-tuning improve how a model USES retrieved context?
Yes — that's a legitimate use: train it to stay strictly grounded, cite properly, and refuse when the context is silent. Notice it's still a behaviour fix; the knowledge still arrives through retrieval.
Does long context change this debate?
It changes the RAG-vs-paste-everything question (lesson 10), not this one. However big the window, knowledge still has to enter per request from somewhere — and weights remain unciteable and expensive to update.
Final lesson: putting everything together as an interview answer — Lesson 12: RAG System Design →


