Skip to content
AI Playbooks · 6 min read

RAG vs Fine-Tuning for Beginners: The Playbook on Which to Choose

RAG vs fine-tuning explained in plain words. Follow five simple plays to decide which one your AI feature needs, with a story and a checklist.

Meera is a developer in Pune. Her company sells home appliances, and her manager has asked for a chatbot that answers customer questions. On day one she reads two things online. One says “just use RAG”. The other says “you must fine-tune the model”. She closes both tabs and wonders which one is right.

If you have felt the same, this playbook is for you. The big question is rag vs fine-tuning, and the honest answer is that they solve two different problems. Once you see the difference, the choice becomes easy.

Meera also learns something comforting: most beginners should start with one of them, and she will find out which.

Last verified: 2 November 2026. AI tools change fast; check the linked sources for anything newer.

Who this is for: developers and curious beginners who are building an AI feature and cannot decide how to teach the model about their own business. Time needed: about 30 to 40 minutes.

RAG vs fine-tuning, in simple words

Think of a new colleague who is smart but knows nothing about your company. You have two ways to help.

  • RAG (retrieval-augmented generation) is like handing the colleague a folder of manuals and saying “look it up before you answer”. The model searches your documents and reads the right pages first.
  • Fine-tuning is like sending the colleague to a training course. They practise on many examples until a certain way of writing or acting becomes a habit.

The short version: RAG gives a model knowledge. Fine-tuning changes how a model behaves. Many guides, including this one from Progress and this beginner guide on DEV, make the same point.

If you are new to how models read text, start with our How LLMs Work playbook. For the search part of RAG, see Embeddings for Beginners.

The playbook at a glance

  1. Name the problem: is it missing facts or wrong behaviour?
  2. Try a better prompt first.
  3. Add RAG when facts are the gap.
  4. Consider fine-tuning when style or format is the gap.
  5. Measure, then combine only if the numbers say so.

Play 1: Name the problem

Goal: know what is actually going wrong before you pick a tool.

  1. Collect 10 real questions the chatbot got wrong.
  2. For each one, ask: did the answer have wrong or missing facts, or were the facts fine but the tone or format was off?
  3. Count each group.

Meera finds that 8 of her 10 bad answers have wrong facts, such as an old warranty period. Only 2 are about tone. (These numbers are illustrative.) The problem is mostly missing knowledge.

You are done when: you can say in one sentence whether the gap is facts or behaviour.

Play 2: Try a better prompt first

Goal: see how far the cheapest option goes.

  1. Write clear instructions: who the bot is, how it should sound, what to do when unsure.
  2. Add two or three example answers right inside the prompt.
  3. Run your 10 questions again.

Meera’s two tone problems disappear with three examples in the prompt. She did not need training for those. The facts are still wrong, as a prompt cannot teach facts the model never saw.

You are done when: you know which problems a prompt alone cannot fix.

Play 3: Add RAG when facts are the gap

Goal: let the model read your documents at question time.

  1. Collect the documents: manuals, warranty pages, help articles.
  2. Split them into small chunks and turn each chunk into an embedding (a list of numbers that captures meaning).
  3. When a customer asks something, find the closest chunks and paste them into the prompt.
  4. Tell the model: “Answer only from these pages. If the answer is not there, say so.”

When the warranty changes next month, Meera updates one document and the next answer is correct. No retraining. That is the biggest strength of RAG: facts stay fresh and you can control who sees which documents. For a hands-on build, see our Spring AI RAG tutorial.

You are done when: the 8 fact-based questions now come back right, with the source page shown.

Play 4: Consider fine-tuning when behaviour is the gap

Goal: decide honestly whether training is worth the effort.

  1. Ask: do I need a very steady voice, a strict output format, or a narrow skill that prompts cannot hold?
  2. Ask: do I have hundreds of good example conversations that show the right behaviour?
  3. If both answers are yes, fine-tuning is worth a trial. If not, stay with prompts and RAG.

Fine-tuning is a poor way to add facts. Sources note that models do not reliably memorise facts this way, and you cannot easily update or remove one fact later. Meera has no steady-voice problem, so she skips it for now.

You are done when: you have written down a clear yes or no, with a reason.

Play 5: Measure, then combine only if needed

Goal: let test results, not opinions, drive the next step.

  1. Keep a fixed set of test questions with the right answers.
  2. Score every change: prompt, RAG, and fine-tuned model.
  3. Use both together only when you need current facts and a special voice at the same time.

Our AI Evals playbook shows how to build that test set. Meera’s score jumps after RAG, and she stops there.

You are done when: every change you keep has a better score than before.

Which one do you need?

OptionBest forTrade-off
Better promptTone, rules, simple formatsCannot add new facts
RAGPrivate or changing factsLonger prompts on every request
Fine-tuningSteady style, strict format, narrow skillNeeds good examples; facts are hard to update
BothFresh facts plus a special voiceMost work to build and test

Mistakes to avoid

  • Fine-tuning to add facts. Fix: use RAG for facts and keep training for behaviour.
  • Believing fine-tuning stops made-up answers. A tuned model can state wrong facts in a polished style. Fix: ground answers in retrieved documents.
  • Skipping the prompt step. Fix: always try clear instructions and examples first.
  • Pasting whole documents into RAG. Fix: use small chunks so the right page is found.

How to know it is working

  • Your test score goes up after each change.
  • Answers show a source, and the source really says that.
  • When a document changes, the answer changes the same day.

Your checklist

  • ☐ I listed 10 wrong answers and sorted them into facts or behaviour
  • ☐ I tried a better prompt with examples
  • ☐ I added RAG for any fact problem
  • ☐ I wrote a clear yes or no on fine-tuning
  • ☐ I have a test set that scores every change

Frequently asked questions

Should a beginner start with RAG or fine-tuning?

Start with a good prompt, then RAG. It is cheaper, faster to change and easier to check. Fine-tuning comes later, if behaviour is still the problem.

Can I use both together?

Yes. A common pattern is a fine-tuned model for tone and format, with retrieval supplying current facts. Do it only when tests show you need both.

Which one costs more?

RAG adds cost on every request because the retrieved text makes each prompt longer. Fine-tuning has an upfront training cost but can allow shorter prompts. Check your provider’s current pricing.

Does fine-tuning stop hallucinations?

No. Grounding the answer in retrieved documents is the more direct fix, and you should still test the results.

Back to Meera: pick the smaller tool first

Meera shipped her chatbot with a clear prompt and RAG over the warranty pages. Her manager asked if they should train a custom model. She showed the test scores and said, “Not yet. Facts were the gap, and now they are fixed.”

Your next action: do Play 1 today with 10 real wrong answers. Next in the path, we will look at running open models on your own machine.

Sources: Progress: RAG vs Fine-Tuning, DEV Community beginner guide, Denser: 2026 decision guide.

Leave a Reply

Your email address will not be published. Required fields are marked *

Newsletter

Get the next guide before anyone else.

One email a week with new playbooks and tutorials. No spam, unsubscribe anytime.