Skip to content
Menu
English

RAG vs Fine-tuning

Retrieval-Augmented Generation: ground a model answer in documents fetched at query time.

Feature comparison

No comparable attributes have been recorded for these two technologies yet.

Which should you choose?

Generated from the differences above by structured rules, not by a model.

Choose RAG if…

Nothing in the recorded attributes distinguishes it in your favour.

Choose Fine-tuning if…

Nothing in the recorded attributes distinguishes it in your favour.

About this page

The page is kept reachable but excluded from search indexes until it carries enough sourced detail (PRD SEO-08).

RAG

technique · Techniques

Retrieval-Augmented Generation answers a question by first retrieving relevant passages from a knowledge source and then having a language model compose the answer from them. It solves two problems at once: a model cannot know facts outside its training data, and fine-tuning it on new facts is expensive and must be repeated whenever the facts change. It exists because most factual answers are cheaper to look up than to memorise. The cost is a new dependency chain - embeddings, a vector store, reranking and a generation step - which is why it is the most interconnected node in this graph.

Fine-tuning

technique · Techniques

Fine-tuning continues training an already pre-trained model on a smaller, task-specific dataset so that its weights shift toward the behaviour you want. It solves the problem that a general model may not follow a house style, a domain vocabulary or a fixed output format. It exists because pre-training is expensive but adaptation is not: starting from a pre-trained checkpoint means a modest dataset is enough. It is the main alternative to retrieval when the goal is behaviour rather than fresh facts.