Fundamentals
Choosing context for an AI task
Assemble a compact set of documents, decisions, and examples that are relevant to the result.
Start with the answer you want to verify
A deliverable gives you a way to decide which context matters. Imagine you need a comparison of two draft membership pages. The audience, the current terms, and the approved wording around fees will affect the answer. An older redesign brief matters only if it defines a continuing constraint, such as a required reading level.
List the questions the assistant must resolve, then choose the shortest authoritative material that answers each one. Anthropic frames context engineering as choosing the information that produces the desired behavior within a model’s practical constraints. It also treats clarity about success as a starting point for improving prompts. 1 2
Identify authority and applicability explicitly
| Material to supply | What to tell the assistant |
|---|---|
| Current membership terms | This is the authority on price and renewal. |
| Draft pages A and B | Compare their public wording and cite the page heading for each issue. |
| One approved page example | Follow the voice and reading level. Its prices are historical. |
A useful example can contain an outdated fact. Label what to imitate and what to discard. When you provide two documents with different scopes, describe where each applies. This gives the assistant a way to resolve a conflict before it guesses that whichever file appears first is authoritative.
Tighten the context using the mistakes you see
Run the comparison, then check a claim about fees and a claim about renewal. If it quotes an old rate from the example, reduce the example to the paragraph that shows the intended tone. If it misses a business rule, provide the exact policy section and ask for a citation tied to that claim. Keep a record of which input resolved each miss so the next run starts with the right packet.