Prompting vs RAG vs Fine-Tuning: Choosing How to Customise AI
When a general model doesn't do exactly what you need, there are three main ways to customise it. Teams often jump straight to fine-tuning when a better prompt would have worked.
Option 1: Prompting
Improve instructions, add examples, define output formats.
- Cost: very low
- Speed: minutes
- Best for: tone, format, task instructions, simple domain rules
Always start here.
Option 2: RAG (Retrieval-Augmented Generation)
Fetch relevant documents and include them in the prompt.
- Cost: moderate (search infrastructure)
- Speed: days to weeks
- Best for: knowledge that changes, company documents, answers needing citations, permission-aware data
Option 3: Fine-Tuning
Train the model further on your examples.
- Cost: higher (data preparation, training, evaluation, hosting)
- Speed: weeks
- Best for: consistent style or format at high volume, specialised classification, making a small model perform like a bigger one on a narrow task
Fine-tuning teaches behaviour, not reliable facts. To give a model new knowledge, RAG is usually the better choice.
Decision Guide
| Need | Start with |
|---|---|
| Different tone or format | Prompting |
| Answer from company docs | RAG |
| Up-to-date information | RAG / web search |
| Classify 1M tickets cheaply | Fine-tune a small model |
| Strict output style at scale | Prompting → fine-tuning |
| Domain jargon understanding | Prompting + RAG, then fine-tuning |
Combine Them
Real systems often use all three: a fine-tuned small model for routing, RAG for knowledge, and careful prompts for behaviour.
Evaluate Before and After
Whatever you choose, build a test set first. Without it, you can't prove that RAG or fine-tuning actually improved anything.
Climb the ladder one step at a time: prompt, then retrieve, then fine-tune — and measure at every step.