Skip to content
All articles

Fine-tuning · Adaptation layers

Which layer owns the requirement?

Fine-tuning is one layer of a stack. Current facts belong to retrieval, exact calculation to tools, revocable permissions to policy, and secrets never in the weights.

· 3 min read

Requirements matched to the layer that owns them. What must be current belongs to retrieval. What must be exact belongs to tools. Stable, repeated behavior belongs to supervised fine-tuning or adapters. What must be revocable belongs to deterministic policy. What must stay secret never goes in the weights. The architect rule: do not train knowledge that must be current, permissions that must be revoked, calculations that must be exact, or secrets. The question is not RAG or fine-tuning, but which requirement belongs in which layer.

Not every product requirement belongs inside model weights. The course describes a production AI system as several adjustable layers:

  • the prompt states the immediate task and output expectations;
  • retrieval supplies current, private or source-backed facts;
  • tools perform exact calculations and authorized actions;
  • model routing chooses a capability and cost envelope;
  • fine-tuning changes repeated behavior encoded in parameters;
  • preference optimization shifts relative choices;
  • distillation transfers selected behavior into a different serving model;
  • deterministic policy constrains all of them.

Match the requirement to the layer

The requirementThe layer that owns it
It must be currentRetrieval
It must be exactTools
Stable, repeated behaviorSupervised fine-tuning or adapters, after a measured baseline
It must be revocableDeterministic policy
It must stay secretNowhere in the weights

The layers compose. A policy assistant may use RAG for the latest policy text and fine-tuning for a stable answer structure. A support system may use tools for account facts, fine-tuning for classification and preference optimization for response style. Even a distilled model may still need retrieval, because compression does not make its internal knowledge current.

Architect Rule

Do not train knowledge that must be current, permissions that must be revoked, calculations that must be exact, or secrets that should never become parameters.

The better question

The architecture question is not "RAG or fine-tuning?" It is which requirement belongs in which layer, and what evidence validates the composition. Policy and evaluation apply to every layer you choose, and the course's figure notes that these are composable options, not mandatory steps: an application may use prompts and retrieval without any fine-tuning at all.

Get one diagram a week

A short article built around one engineering diagram, from the same library as these courses.

One diagram-led article a week on AI and systems engineering. We email you once to confirm, and every newsletter has an unsubscribe link. Privacy policy