Prompting vs RAG vs Fine-Tuning: How to Choose (and Why the Answer Changed in 2026)
What each option actually changes, the myth that fine-tuning teaches facts, where fine-tuning really stands at OpenAI, Google and Anthropic in 2026, four worked examples, and the order to try them in. With an interactive decision helper.
At some point in almost every AI project, someone asks: should we fine-tune?
It's a fair question. Fine-tuning sounds like the serious option, the one where you make the model truly yours. Prompting sounds like tinkering, and retrieval sounds like plumbing. So when results are disappointing, training a custom model can feel like the grown-up next step.
Most of the time it isn't. Not because fine-tuning is bad, but because the three options fix three different problems, and teams often reach for the most expensive one to fix a problem it was never designed for. And in 2026 there's a second reason to slow down, which surprises a lot of people: for the big hosted models, fine-tuning has quietly become hard to get at all.
This is a practical guide to choosing. No hype in either direction, just what each option really does, when it earns its cost, and the order I'd try them in.
Three tools, three different jobs
The cleanest way to keep them apart is to ask what each one changes.
Prompting changes what you ask
Instructions, examples of good output, a schema for the answer, the order you put things in. The model stays exactly the same; you get better at telling it what you want. It's instant to change, costs nothing to try, and moves with you when you switch models.
RAG changes what the model can see
Retrieval-augmented generation looks up the relevant parts of your own documents for each question and puts them in the prompt. The model is still the same, but now it's answering with your information in front of it. Update a document and the next answer reflects it.
Fine-tuning changes the model itself
You train a copy of the model on hundreds or thousands of examples of input and the output you want. Afterwards it behaves differently by default, without being told. That's powerful for the right job, and it's also the only one of the three that you can't undo with a quick edit.
Put simply: if the model doesn't know something, that's a knowledge problem, and you fix it by giving it the information. If it knows but doesn't behave the way you want, that's a behaviour problem, and you fix it with prompting first and training only if prompting runs out.
Start with the symptom, not the solution
Before choosing anything, write down in one sentence what's actually wrong. It sounds obvious, but “the AI isn't good enough” leads straight to the wrong fix. Here are the usual complaints and where each one points:
“It doesn't know about our products.”
Missing knowledge → RAG, or just put it in the prompt if it's small
“It answers in the wrong format.”
Behaviour → Prompting: examples and structured outputs
“It sounds nothing like our brand.”
Behaviour → Prompting: a style guide and two or three samples
“It makes things up.”
Grounding → RAG with citations, plus evals
“It's great, but too slow and expensive.”
Cost → Smaller model, caching, shorter output; fine-tune last
“It gets this one narrow task right 85% of the time, and better prompts stopped helping.”
Behaviour → Now fine-tuning is worth a look
| What people say | Kind of problem | Where to start |
|---|---|---|
| “It doesn't know about our products.” | Missing knowledge | RAG, or just put it in the prompt if it's small |
| “It answers in the wrong format.” | Behaviour | Prompting: examples and structured outputs |
| “It sounds nothing like our brand.” | Behaviour | Prompting: a style guide and two or three samples |
| “It makes things up.” | Grounding | RAG with citations, plus evals |
| “It's great, but too slow and expensive.” | Cost | Smaller model, caching, shorter output; fine-tune last |
| “It gets this one narrow task right 85% of the time, and better prompts stopped helping.” | Behaviour | Now fine-tuning is worth a look |
Notice how far down the list fine-tuning appears, and how specific the situation is by the time it does.
The myth: fine-tuning teaches the model your facts
This is the misunderstanding behind most bad fine-tuning projects. The thinking goes: we have thousands of internal documents, so let's train the model on them and it will know our business.
It doesn't work the way people hope. Fine-tuning is good at teaching a pattern, a format, a tone or a narrow skill from examples. It's a poor way to store facts, for four practical reasons:
- You can't update it. When a price, a policy or a product changes, the trained model still believes the old version until you train it again.
- You can't cite it. With retrieval, the answer can point to the document it came from. Knowledge baked into weights has no source to show.
- You can't filter it. If some documents are only for certain users, retrieval can respect that in the search query. A trained model may repeat anything it saw to anyone.
- It blends. Training nudges what the model already believes rather than replacing it, so you can get confident answers that mix your facts with older general knowledge.
OpenAI's own fine-tuning guide frames it the same way, with examples like classification, translation, a specific output format, and tone. Knowledge belongs in the prompt or in retrieval.
Prompting goes further than most people think
When someone says prompting didn't work, it's worth asking what they tried. Often it was a single paragraph of instructions. That's not the ceiling; it's the floor. Before giving up on prompting, make sure you've done these:
- Show, don't just tell. Two or three examples of exactly the output you want teach format and tone faster than any description.
- Constrain the output. If the result is data, use the provider's structured output mode so the shape is guaranteed.
- Break the task up. One prompt that classifies, then one that writes, usually beats one prompt that does both.
- Give it room to think. For tricky judgement calls, ask for brief reasoning before the answer, or use a reasoning model.
- Put the stable part first. Long instructions and reference material at the top of the prompt, so prompt caching makes them cheap.
Context windows are also far larger than they were when fine-tuning became popular. A full style guide, a product manual and twenty worked examples can sit in one prompt, and with caching you don't pay full price for them on every request. A lot of what used to need training now fits in the prompt. The details are in structured output and tool calling and prompt caching explained.
When RAG is the right answer
Retrieval is the answer whenever the problem is knowledge and the knowledge is too big for one prompt, changes often, or isn't the same for every user. Support assistants over product docs, internal search over a wiki, answering questions about contracts or policies: these are retrieval problems, almost without exception.
The catch is that RAG has its own failure modes, and nearly all of them are about search rather than the model: the right paragraph was split in half, exact product codes weren't matched, or old and new versions of a page were both indexed. If you go this way, RAG from scratch walks through chunking, hybrid search, reranking and how to test retrieval on its own.
When fine-tuning genuinely earns its cost
Fine-tuning has a real place. It's just narrower than its reputation. It makes sense when all of these are true at once:
- The task is narrow and repetitive. Classifying tickets, extracting the same fields, rewriting into one fixed style. Not “be a better assistant”.
- It runs at high volume. Training costs time and money up front; you earn it back over many thousands of calls.
- It's stable. If the rules change every month, you'll be retraining every month.
- You have the examples. Hundreds to thousands of checked, correct input and output pairs, plus a separate set to test on.
- Prompting has measurably stalled. You have evals showing that better prompts stopped improving the score, not just a feeling.
The most common good reason today is cost. A large model with a long, careful prompt does a narrow task well but expensively. Fine-tuning a much smaller model on the large model's best outputs for that one task can get close to the same quality at a fraction of the price and latency. That's a sensible, measurable project. “Make the model understand our company” is not.
The 2026 reality check: who still lets you fine-tune?
Here's the part that changes the conversation. Even when fine-tuning is the right idea, the big hosted models have mostly stopped offering it. From each provider's own documentation as of December 2026:
- OpenAI
- Winding down. Eligible existing customers can create new training jobs until December 15, 2026, and a fine-tuned model stops working when its base model is shut down.
- Google (Gemini API)
- No model in the Gemini API or AI Studio currently supports fine-tuning. Google points to Gemini Enterprise Agent Platform for tuning instead.
- Anthropic (Claude)
- On Amazon Bedrock, the only Claude model listed for fine-tuning is Claude 3 Haiku, a 2024 model, in one region.
- Open-weight models
- Fully available. You can fine-tune models like Llama, Qwen or Mistral yourself, or use a managed service such as Amazon Bedrock for some of them. You also host and run the result.
So in practice, “should we fine-tune?” now usually means two different questions:
- Can a small open-weight model, fine-tuned for this task, replace a big hosted model? Often a good question, especially for cost. But you now own hosting, scaling, monitoring and upgrades.
- Do we need a frontier model to behave differently? Then the realistic tools are prompting and retrieval, because training that model yourself mostly isn't on offer.
There's also a quieter cost that applies everywhere: a fine-tuned model is tied to its base model. When that base model is retired or a better one arrives, you train again. A good prompt, by contrast, usually moves to the next model with a few small edits.
Help me choose
Answer five questions about your feature and you'll get a starting point, with the reason and the next step.
Start with
RAG
The model is missing information that changes often. Retrieval lets you update a document instead of retraining anything.
Next step: Start with chunking by section and test retrieval on its own with 30 to 50 real questions.
A starting point, not a verdict. Whatever you pick, measure it against your own examples.
Four examples, worked through
To make it concrete, here's how I'd think about four common requests.
A support assistant over product documentation
Classic retrieval. The docs change with every release, answers should link to the right page, and enterprise customers may only see their own plan's docs. A good system prompt sets the tone; RAG supplies the facts. Fine-tuning adds nothing here except a model that's out of date by the next release.
Writing in your brand voice
Prompting. A short style guide plus three or four real examples of on-brand copy gets most teams where they want to be. If the output still feels generic, the examples are usually the problem: pick ones that are clearly yours, not average.
Tagging tens of thousands of tickets a day into a fixed set of categories
Start with a small model, a clear list of categories with one example each, and structured output. Measure it. If accuracy plateaus below what you need and you have a large set of correctly tagged tickets, this is a textbook case for fine-tuning a small open-weight model. High volume, narrow, stable and measurable.
Pulling fields out of contracts
Structured output with a strict schema handles the shape. If each contract is long, that's a retrieval or chunking question, not a training one. Only consider fine-tuning if you process huge volumes of the same kind of document and a smaller tuned model would save real money.
They work best together
This isn't really a choice of one. The most common production setup is a good prompt plus retrieval: the prompt sets behaviour, retrieval supplies knowledge. When fine-tuning does appear, it's usually as one small component inside that system, like a tuned classifier that routes questions or tags documents, not as a replacement for it.
The order I'd try them in:
- Write a proper prompt with examples and structured output.
- Build an eval set from real inputs, so every change after this is measured.
- Add retrieval if the problem is missing or changing knowledge.
- Tune cost and speed with a smaller model, caching, shorter output and batching.
- Consider fine-tuning only when the evals show prompting has stalled on a narrow, high-volume task and you have the examples to train on.
Step two is the one that makes the rest honest. Without an eval set you can't tell whether fine-tuning helped or just changed things. The evals guide covers how to build one, and choosing the right AI model helps with step four.
Frequently Asked Questions
What is the difference between RAG and fine-tuning?
RAG looks up relevant information at the moment of each question and puts it in the prompt, so the model answers from your current documents. Fine-tuning trains the model on examples so it behaves differently every time. RAG is for knowledge; fine-tuning is for behaviour on a narrow task.
Can fine-tuning teach a model new facts?
Not reliably, and it's the wrong tool for it. Facts absorbed through training can't be updated without retraining, can't be cited, can't be filtered by user permissions, and can blend with what the model already believed. Use retrieval or the prompt for facts.
Should I fine-tune or use RAG for a chatbot over company documents?
Use RAG. Company documents change, different people are allowed to see different things, and users want to know where an answer came from. Retrieval handles all three; fine-tuning handles none of them.
Can you still fine-tune GPT, Gemini and Claude models in 2026?
Only in limited ways. OpenAI's fine-tuning is winding down: eligible existing customers can start new training jobs until December 15, 2026. The Gemini API has no model that supports fine-tuning; Google offers it through Gemini Enterprise Agent Platform instead. On Amazon Bedrock, the only Claude model listed for fine-tuning is Claude 3 Haiku. In practice, most fine-tuning today means open-weight models.
How many examples do I need to fine-tune?
There's no single number, but think hundreds to thousands of checked, high-quality examples for a narrow task, plus a separate test set. If you can't collect that, you're not ready to fine-tune, and better prompting will do more.
The short version
Prompting changes what you ask, RAG changes what the model can see, and fine-tuning changes the model. If it doesn't know something, give it the information, in the prompt or through retrieval. If it doesn't behave the way you want, push prompting much further than feels necessary. Fine-tune only for a narrow, stable, high-volume task, with good examples and evals proving prompting has stalled. And in 2026, remember that fine-tuning the big hosted models is mostly off the table, so in practice it usually means a smaller open-weight model you run yourself.
Continue Reading
Explore more articles on software engineering and technology
Making AI Features Feel Fast: Streaming, Latency and UX
Time to first token vs output speed, streaming from the model to the browser in Next.js, the UX details that make streaming feel polished, and the changes that genuinely cut latency. With an interactive race between waiting and streaming.
Prompt Injection and AI Security: A Practical Guide for App Developers
Why LLMs can't reliably tell instructions from data, how indirect injection hides in emails and web pages, the lethal trifecta, and the layered defences that hold: fewer capabilities, real confirmation, output control, quarantine and testing. With an interactive attack demo.
Structured Output and Tool Calling: Getting Reliable JSON from LLMs
Prompt-only vs JSON mode vs structured outputs, how Claude, OpenAI and Gemini do it, schema design that helps the model, the validation you still need, and how tool calling works under the hood. With an interactive demo of what each layer catches.