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.
| Prompt engineering | RAG | Fine-tuning | |
|---|---|---|---|
| What it changes | The instructions | The information the model sees | The model's weights |
| Data needed | None | Your documents | Hundreds to thousands of labelled examples |
| Up-to-date facts? | Only what you paste in | Yes: refresh the documents | No: frozen at training time |
| Cost and effort | Low | Medium | High |
| Best for | Quick tasks, tone and format | Company knowledge, answers with sources | Consistent 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
- Start with prompting. It's free and fast.
- If answers lack your facts or need sources, add RAG.
- If the style, format or skill is still wrong after good prompting, consider fine-tuning.
- Real products often use all three together.
Try it yourself
About 10 minPick the right approach
- List 5 needs: a fixed email format, answers from today's price list, a medical writing style, a one-off summary, answers with sources.
- Mark each: prompting, RAG or fine-tuning.
- 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.