Context · 2026-08-18

The agent might need facts from a 200-page manual to answer some questions.

  1. APaste the whole manual into the system prompt so it is always available.
  2. BRetrieve only the relevant sections on demand and put those in context.
  3. CFine-tune the model on the manual instead of using context.
  4. DRaise the temperature so the model recalls the manual better.

Answer: B

Retrieve only the relevant sections on demand and put those in context.

Why

Retrieve on demand (RAG): pull only the sections a question needs. Stuffing 200 pages into every call is slow, costly and dilutes attention; fine-tuning bakes in facts that go stale; temperature has nothing to do with recall.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path