How fine-tuning differs from prompting and RAG
There are three common ways to adapt a model to your work, and they solve different problems:
- Prompting changes one answer. It is instant, cheap to try, and the first thing to improve.
- RAG gives the model the right facts at answer time. Use it when the problem is knowledge: your products, policies or documents.
- Fine-tuning changes the model's default behavior by training it on many examples. Use it when the problem is consistency: a fixed format, a house style, or a narrow classification task.
A useful rule: fine-tuning teaches how to answer, RAG supplies what to answer with. Fine-tuning is a poor way to add facts that change often, because you would have to retrain every time they change.
When it's worth it
- You have hundreds or thousands of good examples of the exact output you want.
- A well-written prompt with examples still gives inconsistent results.
- You send the same long instructions on every request and want shorter, cheaper prompts.
Costs and risks
- Preparing clean training data is usually the biggest job.
- You need an evaluation set to prove the tuned model is actually better.
- When the provider releases a better base model, you may need to tune again.