Fine-Tune, RAG, or Just Prompt? How to Answer the Question Interviewers Keep Asking
How to answer 'fine-tune or RAG?' in an AI/ML interview: a decision framework, a trade-off table, junior and senior sample answers, and the eval follow-ups.

Last updated: November 2026.
Quick answer: Diagnose the failure before you pick a fix. If the model lacks knowledge that is private or changes often, use RAG. If it has the knowledge but behaves inconsistently, such as drifting from a format or tone, fine-tune. Start with a strong prompt and an eval set either way, and say what result would change your mind.
The question usually arrives as one line, sometimes mid-way through a system design round: "Would you fine-tune for this, or use RAG?" The interviewer is grading whether you can look at a model's bad output and say what kind of bad it is.
Most weak answers pick a side in the first sentence. Strong answers ask what's going wrong first, then match the tool to the failure. If this question comes up inside a full design round, LLM and GenAI System Design Interview covers the rest of that answer. This post is only about the one decision.
What Is the Interviewer Actually Testing?
It tests judgment with a question small enough to answer in two minutes and deep enough to expose whether you've built anything with a model in production.
They want to hear three things, roughly in this order:
- You diagnose before prescribing. You ask what the failures look like.
- You know what each option is for, and what it's bad at.
- You'd prove the choice with evals instead of asserting it.
The model vendors' own documentation supports the diagnose-first framing. OpenAI's guide to optimizing LLM accuracy separates two kinds of problem: missing or outdated knowledge, which it points toward context and retrieval, and inconsistent behavior such as wrong formatting or tone, which it points toward fine-tuning. It also says prompt engineering is typically the place to start, and it warns against treating the three as a fixed staircase you climb in order. Put that structure in your own words and you're already ahead of a candidate reciting pros and cons.
How Do You Decide Between Prompting, RAG, and Fine-Tuning?
Run the decision as a short diagnosis. Out loud, it sounds like a series of questions you ask yourself in front of the interviewer.
- Have I tried a good prompt with a few examples, and measured it? If not, that's step one. Prompting is the fastest option to iterate on, and it uses the base model, so there's no training bill.
- When the output is wrong, is it wrong about facts? Missing company knowledge points to retrieval. So does any answer that needs to cite a source.
- Or is it wrong about behavior? The facts are fine, but the JSON keeps breaking on edge cases or the tone drifts. For broken JSON, try schema-enforced structured output first. If the format or tone still drifts, that points to fine-tuning, provided you have good examples of the right behavior.
- Is the prompt itself the cost problem? If you're pasting a long instruction block and many examples into every call, fine-tuning can move that behavior into the weights. OpenAI's guide also lists fine-tuning as a way to reach the same accuracy with fewer tokens or a smaller model.
The trap is step 2 versus step 3. Facts belong in retrieval because they change and need to be traceable. Fine-tuning bakes knowledge in with no citation and no cheap way to update it. If an interviewer says "the docs change weekly" and you say "fine-tune," that's usually the end of the question.
How Do the Three Options Compare?
Keep this table in your head. The interviewer won't ask for it, but every follow-up maps to one of its rows.
| Factor | Prompting only | RAG | Fine-tuning |
|---|---|---|---|
| Fixes | Unclear instructions, missing examples | Missing, private, or changing knowledge | Inconsistent format, tone, or task behavior |
| Knowledge freshness | Limited to what fits in the prompt | Fresh as the index; update a document and the next query sees it | Frozen at training time; new facts need retraining |
| Format consistency | Good with clear instructions, can drift | Same as the underlying prompt | Strongest when trained on many correct examples |
| Citing sources | Possible when the source text is in the prompt | Natural: each chunk carries its source | Hard: the model can't point to where it learned something |
| Build cost | Lowest | Index, embeddings, retrieval service to run | Labeled training data, training runs, retraining over time |
| Per-request cost | Grows with prompt length | Retrieved context adds input tokens | Can drop long instructions; a smaller tuned model can be cheaper to serve |
| Latency | Lowest extra work | Adds a retrieval step and a longer context | No retrieval step; shorter prompts can help |
| What breaks it | Edge cases the prompt didn't anticipate | Wrong or stale passages retrieved | Training data that's noisy, narrow, or out of date |
Two rows carry most of the weight in an interview. Knowledge freshness settles most cases that involve company documents. Format consistency settles most cases about structured output. The cost and latency rows are where senior candidates separate themselves, because they're about running the system for a year rather than demoing it once.
What Does a Junior-Level Answer Sound Like?
Take a common prompt: "We're building a support assistant that answers customer questions using our help center. Fine-tune or RAG?"
A solid junior answer, spoken:
"I'd use RAG. The help center changes as the product changes, and retrieval means an updated article is used on the next query without retraining. It also lets the assistant cite the article, which helps the customer and helps us check answers. I'd start with a good prompt that tells the model to answer only from the retrieved text and to say when the text doesn't cover the question. I wouldn't fine-tune unless we saw a specific behavior problem, like answers not following our response format."
That answer passes. It names the deciding factor (freshness), adds citation as a second reason, and leaves a door open for fine-tuning tied to a specific failure. What it lacks is any measurement. A junior candidate who adds one sentence about checking answers against a labeled set of real questions moves noticeably up.
What Does a Senior-Level Answer Add?
Same prompt. The senior answer opens with questions and closes with a plan to prove it.
"Before I choose, what do the failures look like today? If you've tried a prompt and the answers are wrong because the model doesn't know our product, that's a knowledge problem and I'd build retrieval. If the answers are factually right but come back in the wrong structure for our ticketing system, that's behavior, and fine-tuning or stricter output constraints fit better.
My default here is RAG with a strong prompt, because help articles change and we'll want citations. I'd build an eval set from real past tickets: the question, the article that answers it, and an acceptable answer. I'd measure retrieval and generation separately, so when quality drops I know which half broke.
I'd consider fine-tuning later for two reasons only. One, if format errors persist after prompt fixes. Two, if per-request cost matters at our volume and a smaller tuned model holds quality on the eval set. In that case it'd sit on top of retrieval, trained to answer from retrieved context in our format. What would change my mind: if the knowledge were stable and small enough to fit in the prompt, I'd skip retrieval entirely."
Count what changed. The senior answer:
- turns the question back into a diagnosis
- picks a default and gives the reason
- defines how the choice will be measured, with retrieval and generation split
- names the exact conditions under which it would add fine-tuning
- states what would flip the decision
That last move is the one interviewers remember. Committing to an answer while naming its failure condition reads as experience. Hedging with "it depends" and stopping there reads as the opposite.
Which Follow-Up Questions Should You Expect?
The first answer opens the conversation. The follow-ups decide the score, and nearly all of them are about evaluation. Prepare a concrete reply to each.
- "How would you know RAG is working?" Labeled questions paired with the passage that answers them. Measure whether that passage lands in the top results, then judge answers for correctness and for being supported by the retrieved text.
- "What data would you need to fine-tune?" Examples of the exact input and the exact correct output, drawn from real traffic where you can get it. Say who labels them and how you'd check label quality.
- "How do you know fine-tuning helped?" Run the same eval set on the base model with your best prompt and on the tuned model. If the tuned model doesn't beat a well-prompted base model, or match it on a cheaper model when cost is the goal, it's cost without benefit.
- "What happens when the base model gets upgraded?" A fine-tune is tied to the model it was trained on. Moving to a newer model means retraining and re-evaluating. That's an ongoing cost to name.
- "Your docs just changed. What breaks?" For RAG, the index needs to update the changed chunks and drop stale ones. For a fine-tune, answers drift out of date until the next training run.
- "Could a longer context window replace RAG?" For a small, stable corpus, maybe: put it all in the prompt. Then talk about cost per request and whether the model still finds the right passage in a very long context.
If your answer to any of these is "we'd test it," you've lost the point. Say what you'd test on and what result you'd act on.
What Mistakes Cost Points on This Question?
Each of these is easy to fix once you hear it:
- Picking before diagnosing. Starting with "fine-tuning, because it's more accurate" skips the only part being graded.
- Treating fine-tuning as a way to add knowledge. It's the weakest of the three for facts that change or need a source.
- Forgetting the baseline. Comparing a fine-tuned model to a lazy prompt proves nothing. Compare it to your best prompt.
- Quoting numbers you can't back. Claims like "RAG is X% cheaper" invite a follow-up you can't answer. Describe where the cost comes from instead.
- Ignoring maintenance. Retraining schedules and index updates are real work. Mentioning them shows you've thought past the demo.
How Should You Practice This Answer?
Saying it out loud is the whole exercise. The reasoning above fits in your head easily. Delivering it in order, under a follow-up that pushes on your weakest sentence, is harder.
Run these four scenarios as spoken answers, each in about five minutes, and finish every one with the condition that would change your mind:
- A legal research assistant over case files that grow every day.
- An extraction service that has to return the same structured fields from invoices every time.
- A coding assistant that must follow a company's internal style conventions.
- A high-volume classifier where a large model works but costs too much per call.
Scenario 4 is the easy one to fumble. The answer leans toward fine-tuning a smaller model, and if you've rehearsed "RAG first" hard enough, you'll reach for it by reflex. If you want this inside a broader schedule, the 4-week AI/ML interview plan puts it in week two. For the classic non-LLM design round that often sits in the same loop, see The Classic ML System Design Interview.
How Does PokeBot Fit In?
- The reading half. The AI/ML Engineer Interview Workbook has 21 questions with original worked solutions, restated from publicly shared interview experience. Its LLMs & Generative AI chapter covers this decision alongside the internals interviewers pair it with.
- The speaking half. In the app, set your target role (the AI/ML interview prep page shows how), then start a Technical session in Interview Practice. Add the four scenarios above under "I have my own interview questions" in More options, and turn on follow-up questions so the interviewer presses on your evals. Every session is scored, so you can see whether your answers to the follow-ups are getting more concrete.
Frequently Asked Questions
When should I fine-tune an LLM instead of using RAG?
Fine-tune when the model already knows enough but behaves inconsistently: it drifts from a required output format, misses a tone, or fails to follow a narrow task the same way every time. Use RAG when the model is missing knowledge, such as private documents or facts that change often. If both problems exist, the answer can be both, but start with prompting and measure before adding either.
Why do interviewers ask fine-tuning vs RAG?
It is a short question that tests judgment. A good answer shows you can diagnose what is actually wrong with the model's output, match the fix to the problem, and name what each option costs to build and keep running. Candidates who answer with a favorite technique instead of a diagnosis lose points quickly.
Should I always start with prompt engineering?
Usually, yes. OpenAI's guide to optimizing LLM accuracy calls prompt engineering the typical starting point, and a prompt is faster and cheaper to iterate on than a training run. Say in the interview that you would get a baseline with a good prompt and an eval set first, then decide whether retrieval or fine-tuning fixes the failures you see.
Can you use RAG and fine-tuning together?
Yes. A common combined design retrieves facts at query time and uses a fine-tuned model to produce answers in a consistent format or to follow the retrieved context more reliably. In an interview, justify each piece separately: retrieval for knowledge, fine-tuning for behavior. If you can't name the failure that fine-tuning fixes, leave it out.
Does fine-tuning teach a model new facts?
It is a poor tool for that job. Facts learned through training can't be updated without retraining, and the model can't cite where an answer came from. When the knowledge changes or needs to be traceable to a source, retrieval is the better fit. Fine-tuning is stronger for shaping how the model responds.
What follow-up questions come after fine-tuning vs RAG?
Expect questions about evaluation and failure: how you'd know the choice worked, what data you'd need to fine-tune, how you'd catch a regression after retraining, what happens when the base model is upgraded or the documents change, and whether a longer context window could replace retrieval. Prepare a concrete answer for each before the interview.
How can PokeBot help me practice this question?
PokeBot's AI/ML Engineer Interview Workbook has 21 questions with original worked solutions, including a chapter on LLMs and generative AI. In the app, start a Technical session in Interview Practice, add this question under 'I have my own interview questions' in More options, and turn on follow-up questions so the interviewer presses on your reasoning. Every session is scored.