Retrieval-augmented generation (RAG) and fine-tuning are often presented as rivals. They solve different problems, and many systems use both. The right choice depends on whether your main problem is missing knowledge or inconsistent behavior.
The core difference
RAG gives a model relevant passages at answer time, so it can use documents that change. Fine-tuning changes how the model behaves through additional training, which suits a consistent format, tone or domain pattern.
Use RAG when knowledge changes
If answers depend on policies, product data, contracts or tickets that are updated often, RAG is usually the right starting point. Updates take effect when documents are re-indexed, without retraining, and answers can cite their sources.
Use fine-tuning for behavior
Fine-tuning helps when you need a consistent output structure or task pattern that prompting does not reliably produce. It does not make a model dependably know new facts, so it should not be the first answer to a knowledge problem.
How to decide
Write down twenty real questions and check whether each answer depends on documents or on behavior. Test a retrieval prototype against them first. Fine-tune only if retrieval works and a measurable behavior gap remains.
What each option costs
RAG costs appear in ingestion, search quality and access control. Fine-tuning costs appear in data preparation, training runs and re-evaluation after every change. Both need an evaluation set to show whether the choice worked.