Two ways to make a model “know” your data, with very different costs and failure modes. A framework for deciding which one your feature actually needs.

You’re building a feature and want an AI model to answer questions using your company’s data, not just what it learned during training. Two techniques come up constantly: RAG (retrieval-augmented generation) and fine-tuning. They’re often pitched as competitors — in practice, they solve different problems, and knowing which is which will save you weeks of wasted effort.

The problem both of them solve

Out of the box, a model only knows what it learned during training, and that training data has a cutoff date and no idea what’s inside your internal documents. Both RAG and fine-tuning are ways to close that gap — they just do it in very different ways.

RAG: give the model an open-book exam

RAG works by fetching relevant information at the moment of the question, and handing it to the model as part of the prompt — like letting a student bring notes into an exam.

A search step finds the most relevant chunks of your documents, and the model reads them fresh every single time before answering. Updating your data is as simple as updating the documents; there’s no retraining involved, and the model can cite exactly where an answer came from.

Fine-tuning: teach the model new habits

Fine-tuning is different: instead of handing the model information at question time, you retrain it on examples until the new pattern becomes part of “how it thinks.”

This is the right tool when you want to change behavior, not add facts — teaching a support bot to always respond in your brand’s specific tone, or teaching a model an unusual output format it should always follow. Fine-tuning is poor at keeping up with facts that change often, since every update means retraining again.

A simple rule of thumb

If the problem is “the model doesn’t know this fact,” reach for RAG first — it’s cheaper, easier to update, and easier to debug.

If the problem is “the model knows the fact but won’t behave the way I need,” fine-tuning is worth the extra effort. Many real products end up using both: RAG for facts, a light fine-tune for tone and format.