Prompting vs RAG vs fine-tuning: which one do you need?
Three ways to make an AI model work for your task, compared in plain English, with a simple order to try them and examples of when each one fits.
On this page
You want an AI model to do something specific: answer questions about your college, write in your company's style, or sort support tickets. There are three main ways to get there: prompting, RAG and fine-tuning. Beginners often jump straight to fine-tuning. Usually that is the wrong first step. This post compares all three and gives you a simple order to try them.
The three options in one line each
- Prompting: change what you ask. Better instructions and examples in the prompt.
- RAG: change what the model reads. Look up relevant documents and include them in the prompt.
- Fine-tuning: change the model itself. Train it further on your own examples.
Everyday comparison: helping a new intern.
- Prompting is giving clear instructions.
- RAG is handing them the right file to read before they answer.
- Fine-tuning is sending them on a training course until the skill becomes habit.
Side by side
| Prompting | RAG | Fine-tuning | |
|---|---|---|---|
| What changes | The prompt | The information given | The model's weights |
| Best for | Format, tone, simple tasks | Facts, private and changing data | Consistent style, narrow repeated tasks |
| Setup effort | Minutes | Days | Days to weeks |
| Needs training data? | No | No, needs documents | Yes, many good examples |
| Easy to update? | Very | Yes, re-index documents | No, train again |
| Adds new facts well? | Only what fits in the prompt | Yes | Poorly |
Climb the ladder: cheapest first
Try the options in this order, and only move up when the cheaper one truly isn't enough:
- Prompting. Write clear instructions, add a couple of examples, ask for a format. Our six prompt habits cover the basics. This solves more problems than people expect.
- RAG. If the model is missing knowledge, such as your documents, recent data or private facts, give it that knowledge at question time. See what RAG is.
- Fine-tuning. If the model has the knowledge but still won't behave the way you need, consistently and at scale, train it on examples.
The big myth: fine-tuning to teach facts
Many beginners think: "I'll fine-tune the model on our handbook so it knows our rules." This usually disappoints.
- Fine-tuning is good at teaching how to respond: style, format, the steps of a task.
- It is poor at reliably storing facts. The model may still make up details, and you cannot easily see which fact it used.
- When the handbook changes, you have to train again.
For facts, RAG is almost always the better tool: easy to update, and it can show its sources.
When fine-tuning does make sense
- You need the same narrow task done thousands of times a day, such as sorting tickets into categories.
- A long prompt with many examples works but is too slow or costly at that volume, and a smaller tuned model could do it cheaply.
- You need a very consistent style or format that prompting cannot reliably hold.
- You have hundreds or thousands of high-quality examples, and a way to test the result against your best prompt.
They work together
These are not rivals. Real systems often combine them: a fine-tuned model that follows your format, fed by RAG with up-to-date facts, guided by a well-written prompt.
Quick recap
- Prompting changes the question, RAG changes what the model reads, fine-tuning changes the model.
- Start with prompting, add RAG for knowledge, fine-tune last for behaviour.
- Use RAG, not fine-tuning, to add facts.
- Always compare a fine-tuned model against your best prompt before switching.