← Learn
Decision guide

Better prompt, RAG or fine-tuning? How to pick

Three ways to make an AI fit your work, and they solve different problems. Prompts fix the brief, RAG brings in your facts, fine-tuning teaches habits. Here's how to tell which one you need, and in what order to try them.

View as MarkdownPaste into ChatGPT, Claude or Gemini to ask questions about this page.

Somebody’s AI pilot is giving bad answers, and the room splits into three camps. One says the prompts need work. One says “we should add RAG”. One says “we need to fine-tune our own model”, which sounds the most serious and therefore tends to win.

They’re all describing real techniques. They just fix different problems. Picking the wrong one is how a team spends three months training a model to learn a holiday policy that changes next quarter.

Here’s how to tell them apart.

The short version

Better prompt RAG Fine-tuning
What it changes The instructions you give The material in front of the model The model itself
Fixes Vague brief, wrong format, wrong tone Missing or out-of-date facts Inconsistent habits across many tasks
Analogy Briefing a brilliant new colleague An open-book exam Specialist school
Effort Minutes A project: documents, search, upkeep A project: lots of good examples, training, testing
Facts that change Paste them in each time Yes, update the documents Poor fit
Watch out for No prompt can add missing facts Only as good as what it finds Bad examples make a confident specialist in sloppy

Option 1: a better prompt

A prompt is everything you tell the AI: the task, the context, the format, examples of what good looks like. Most disappointing answers come from a brief that leaves out what’s in your head. How to write prompts that work covers this in detail.

Both OpenAI and Google say to start here. Google’s tuning documentation literally begins with “Start with prompting to find the optimal prompt”, and OpenAI notes that fine-tuning can be time-consuming and that prompt engineering may be all you need.

Try this first when the answers are roughly right but the tone, length, structure or focus is off.

It won’t help when the model doesn’t know the facts. You can’t prompt your way to a policy it has never seen.

Option 2: RAG, for facts it doesn’t have

A large language model knows what was in its training data, up to a cutoff date. Your company handbook wasn’t in it. Ask about your holiday policy and it will either admit it doesn’t know or, worse, make something up.

RAG (retrieval-augmented generation) turns that closed-book exam into an open-book one. Before the model answers, a search step looks through your documents, picks a few relevant passages and puts them next to your question. The model answers from those pages and can cite its sources so you can check them. The full explanation is in What is RAG?.

Why only a few passages? Because everything has to fit in the model’s context window, its working memory. That’s also why the search step matters so much.

Choose this when the answers need specific, private or frequently changing information: policies, product documentation, contracts, support articles. Update a document and the next answer uses the new version.

Watch out for: it’s only as good as what it finds. Out-of-date or contradictory documents produce confidently wrong answers with citations attached. And it reduces mistakes rather than ending them: in 2024, Stanford researchers found legal research tools built this way still got things wrong between 17% and 33% of the time on the questions they tested. More on that in Before you add RAG, clean the cupboard.

Option 3: fine-tuning, for habits

Fine-tuning means training an already-trained model a bit further on your own examples, so its behaviour shifts. Think of a new hire who spent a week studying your best support tickets. They don’t look anything up. They’ve picked up the habit.

Under the hood, a model is billions of numbers called weights, and fine-tuning nudges some of them. Modern methods like LoRA freeze the original model and train a small add-on instead, which is much cheaper. The two-minute version is What is fine-tuning?.

Choose this when you need the same tone, format or behaviour across a large volume of tasks, a good prompt with examples still isn’t consistent enough, and you have plenty of good examples to learn from.

Watch out for:

  • You need lots of good examples. OpenAI suggests starting with 50 well-crafted examples; Google talks about hundreds to thousands. If the examples are sloppy, you get a confident specialist in sloppy.
  • It’s bad at teaching facts. A 2024 study found models learn new facts through fine-tuning slowly, and that once they do, they become more likely to hallucinate. Facts go in the book (RAG), not the training.
  • It ages with its base model. OpenAI notes fine-tuned models stay available until their base model is shut down. When the base model retires, so does your specialist.
  • It takes time and money to prepare data, train and test, and you’ll do it again when your needs change.

Start here: the order to try them in

  1. Write a better prompt. Add context, constraints, format and two or three examples. Test it on real tasks.
  2. Is the problem missing or changing facts? Give the model the material. For one document, paste it in. For hundreds, that’s RAG.
  3. Is the problem consistency at scale, and do you have lots of good examples? Now fine-tuning is worth a conversation.
  4. Still unsure? It’s probably a prompt problem. It usually is.

These aren’t rivals, by the way. Plenty of real systems use all three: a fine-tuned model with a careful prompt, answering from documents retrieved with RAG.

The question to ask

When someone proposes fine-tuning, nod, and ask:

Great, is this a facts problem or a habits problem?

Questions people ask

Should we fine-tune our own AI model?

Usually not first. Start with a better prompt, use RAG when the AI needs facts it doesn't have, and consider fine-tuning only for consistent habits like tone or format, when you have lots of good examples.

Can fine-tuning teach an AI our company's facts?

It's a poor fit. A 2024 study found models learn new facts through fine-tuning slowly and become more likely to hallucinate once they do. Facts belong in the documents the AI looks things up in.

How many examples do you need to fine-tune a model?

OpenAI suggests starting with 50 well-crafted examples, and Google talks about hundreds to thousands. Quality matters as much as quantity: sloppy examples make a confident specialist in sloppy.

Can you use prompting, RAG and fine-tuning together?

Yes. Plenty of real systems use all three: a fine-tuned model with a careful prompt, answering from documents retrieved with RAG.

Watch the episodes

More decision guides