Chapter CFine-tuning vs RAGPage 1 of 8

Fine-tuning vs RAG

Build the mental model

Intuition before architecture: explain fine-tuning versus RAG by connecting a concrete decision to observable evidence.

~13 minHook and intuition

1Try it yourself

Playground

Pick the lever

Prompt, RAG, or fine-tune? One scene at a time.

Answer from our company wiki that changes weekly

Which tool fits this job?

Before you start

Why this matters

Imagine you own a legal research assistant and must explain one decision to a teammate who knows basic AI vocabulary but has never operated this feature. Write two sentences: what problem does fine-tuning versus RAG solve, and what evidence would show it is solving that problem? Do not name a vendor or model yet. This separates the enduring idea from one implementation.

2Learn the idea

Read

A useful picture

See it

Change the model vs give it notes

Fine-tune

Teach voice / format into weights

RAG

Fetch fresh docs at ask time

Fine-tune = bake in style · RAG = look things up when answering

Fine-tuning changes the model’s habits; retrieval-augmented generation changes the evidence on its desk. Use tuning to shape stable behavior or format, and retrieval to provide current, attributable knowledge. They solve different layers and can be combined. The boundary matters: Prompting supplies instructions now, fine-tuning changes weighted behavior, RAG supplies external evidence now, and tools perform actions or deterministic lookups. Fine-tuning is not a database, and retrieval is not learning.

Draw the system in prose as four boxes: need → evidence → decision → consequence. The need belongs to a person or workflow, not the model. Evidence is what the system can legitimately inspect. The decision is the transformation fine-tuning versus RAG performs. The consequence is what changes for a user, operator, or downstream system. If you cannot fill every box, the design is still a label rather than a working mental model.

For a legal research assistant, ask what happens when the model is absent. That baseline reveals the actual value. Then ask what remains deterministic: identity, permissions, arithmetic, record updates, and irreversible actions should not become fuzzy merely because a model participates. The model can propose or interpret; an application still owns policy and state.

Read

Boundaries beginners often blur

Prompting supplies instructions now, fine-tuning changes weighted behavior, RAG supplies external evidence now, and tools perform actions or deterministic lookups. Fine-tuning is not a database, and retrieval is not learning. This distinction is practical. It tells you where to inspect a failure and which component can repair it. Avoid explaining the concept as “the AI understands everything.” Name the artifact moving between stages—a token sequence, retrieved passage, ranked candidate, stored memory, trace, image latent, or agent message.

A good explanation also includes uncertainty. Inputs may be incomplete, learned behavior is probabilistic, and proxies can disagree with real outcomes. That does not make the system unusable; it means the workflow needs a fallback and a way to expose uncertainty rather than hiding it in fluent prose.

Read

First design sketch

Use this compact record:

| Question | Concrete answer to supply | |---|---| | User job | One action the person is trying to complete | | Input boundary | Data allowed into the system | | Model contribution | The uncertain judgment or generation | | Deterministic guard | Rule, permission, schema, or calculation | | Success signal | Observable outcome, split by important group | | Escape hatch | Retry, fallback, escalation, or stop |

For this topic, a plausible first signal is not “the output looks intelligent.” It is a task outcome tied to the concept and checked on representative cases. Save this sketch; later pages add controls and measurements without changing the user job.

Read

Explain it back

Teach the concept using the analogy above, then deliberately state where the analogy breaks. The kitchen, notebook, workbench, team, or librarian metaphor omits numerical limits and operational ownership. A learner has mastery when they can leave the metaphor and describe the actual information flow.

Checking tutor…

Continue learning · glossary & guides