Prompting vs RAG vs fine-tuning: which one when?

There are three main ways to get better results from a generative AI model. Prompt engineering improves the instructions. RAG gives the model the right facts at the moment it answers. Fine-tuning changes the model itself with extra training. They solve different problems and are often combined.

Everyday analogy

Working with a consultant. Prompting is giving clearer instructions. RAG is handing them your company files. Fine-tuning is sending them on a course so they think and write like your team.

Example

A legal team: prompts set the format of contract summaries, RAG pulls the latest clauses from the document store, and a fine-tuned model has learned the firm's house style and terminology.

Promptingchange the instructionsCostEffortFresh factsRAGadd the right factsCostEffortFresh factsFine-tuningchange the modelCostEffortFresh facts
Start with prompting, add RAG when answers need your facts, fine-tune only for style or special skills.
Prompt engineeringRAGFine-tuning
What it changesThe instructionsThe information the model seesThe model's weights
Data neededNoneYour documentsHundreds to thousands of labelled examples
Up-to-date facts?Only what you paste inYes: refresh the documentsNo: frozen at training time
Cost and effortLowMediumHigh
Best forQuick tasks, tone and formatCompany knowledge, answers with sourcesConsistent style, special skills, narrow tasks
Example"Summarise this article in 5 bullets""Answer from our HR policies"A model that writes medical notes the hospital's way

How to decide

  1. Start with prompting. It's free and fast.
  2. If answers lack your facts or need sources, add RAG.
  3. If the style, format or skill is still wrong after good prompting, consider fine-tuning.
  4. Real products often use all three together.

Try it yourself

About 10 min

Pick the right approach

  1. List 5 needs: a fixed email format, answers from today's price list, a medical writing style, a one-off summary, answers with sources.
  2. Mark each: prompting, RAG or fine-tuning.
  3. Ask an AI chatbot to challenge your choices.

What you should see: Prompting for format, RAG for facts and sources, fine-tuning for style and specialist skills.

Use any free AI chatbot (ChatGPT, Claude, Gemini or Copilot). Never paste private or confidential information.

Build it for real · guided projectBuild a document Q&A assistant (RAG, no code)About 60 min · No coding needed · step by step
Test what you learned

Take a quick quiz, or look up any word in the glossary.