A new employee analogy
Imagine you hire a very smart new employee who knows a lot about the world but nothing about your shop. You have three ways to help them:
π¬Prompting
Give clear instructions
"Reply politely, in 3 bullet points"
Instant, free to change
πRAG
Hand them the right document
"Here's our return policy; answer from it"
Facts stay up to date
πFine-tuning
Send them on a training course
Practise on 1,000 example replies
Habit, but slow and costly to change
What each one changes
π¬Prompt
Prompting changes your instructions
πRetrieved facts
RAG adds relevant text to the prompt
π§ The model
Fine-tuning changes the model itself
β¨Answer
Prompting and RAG only change what goes into the model. Fine-tuning changes the model's internal numbers (its weights), so the change is baked in. That's powerful, but it also means you must retrain to change it.
Side by side
| Prompting | RAG | Fine-tuning | |
|---|---|---|---|
| Best for | Instructions, format, role | Up-to-date or private facts | Consistent style, narrow skills |
| Setup effort | Minutes | Days (documents + search) | Weeks (examples + training + testing) |
| Cost | Free to try | Search + storage | Training + often hosting |
| Update facts | Edit the prompt | Update the documents: instant | Retrain |
| Shows sources? | No | Yes, can cite documents | No |
| Reduces hallucinations? | A little | Yes, when it answers from sources | Not for facts |
How to choose
1οΈβ£Start with prompting
Clear role, context, examples. Often enough!
2οΈβ£Needs your facts?
Add RAG (or tools for live data)
3οΈβ£Style still wrong at scale?
Fine-tune on good examples
πMeasure each step
Use evals to prove it helped
Most problems people try to solve with fine-tuning are actually solved by a better prompt (see prompt engineering) or by RAG (see what is RAG). To prove a change really helped, test it with evals.
A ShopKart example
| Goal | Method | Why |
|---|---|---|
| Answer in 3 short bullets, politely | Prompting | An instruction |
| Answer from the current return and delivery policy | RAG | Facts that change |
| Know today's order status | Tool call (agent) | Live data from a system |
| Write product descriptions in the brand's exact voice, 10,000 a day | Fine-tuning | Repeated style at scale |
π― Spot the pattern: is it RAG (rather than fine-tuning)?
In an interview nobody tells you the pattern. Read each problem and decide. Look for the signal words.
1. Answer customer questions from our latest return policy
2. Always reply in our playful brand voice
3. Search 5,000 internal documents and cite the source
4. Turn messy notes into one fixed JSON format, millions of times a day
5. Know today's product prices
π― Interview questions on this topic
Try to answer out loud first, then tap to check.
Q1When would you use RAG instead of fine-tuning?Fresher+
Q2What are the risks of fine-tuning?1β3 yrs+
Q3Can RAG and fine-tuning be combined?1β3 yrs+
Q4How do you decide if fine-tuning was worth it?3+ yrs+
Key takeaways
- βThere are three levers: instructions, information and training.
- βMost apps need good prompts plus RAG; fine-tuning is the last step.
- βFacts belong in RAG; style and format can belong in fine-tuning.
- βAlways measure before and after.
Frequently asked questions
What is fine-tuning in simple words?
Fine-tuning means training an existing AI model a little more on your own examples, so it learns a style, format or narrow skill. It changes the model itself, unlike prompting or RAG, which only change what you send to it.
Is RAG better than fine-tuning?
For giving an AI facts (your documents, prices, policies), RAG is usually better: it's cheaper, the facts can be updated instantly, and answers can show their source. Fine-tuning is better for teaching a consistent style, format or specialised behaviour.
Can I combine them?
Yes, and big products often do: a good prompt always, RAG for up-to-date facts, and sometimes a fine-tuned model for tone or format. Start with prompting, add RAG for knowledge, fine-tune last.
Does fine-tuning stop hallucinations?
No. A fine-tuned model can still make things up, and facts learned by fine-tuning go stale. To ground answers in real facts, use RAG and ask the model to cite its sources.
How much data does fine-tuning need?
From a few dozen to a few thousand high-quality examples, depending on the task. The examples must be correct and consistent: the model copies whatever patterns they contain, including mistakes.
π§ Quick check: prompting, RAG or fine-tuning?
1. Your chatbot must answer from a handbook that changes every week. Best choice?
2. You want every answer in your brand's exact tone and JSON format, at huge volume. Best choice?
3. What should you always try first?
4. Which one changes the model's weights?
Checking your accessβ¦