What is context engineering?

Definition

Context engineering determines what an artificial intelligence system can see and use when producing an answer or taking action. It includes system instructions, task details, retrieved documents, examples, tool descriptions, memory, permissions, and current application state.

Effective context is relevant, trustworthy, bounded, and structured for the task. More context is not always better. Designers must manage source authority, freshness, contradictions, prompt injection, context-window limits, and the order in which evidence is presented.

Acronyms and aliases

AI context engineering variant

Frequently asked questions

How is context engineering different from prompt engineering?

Prompt engineering focuses on instructions and wording, while context engineering also manages retrieved evidence, tools, memory, state, permissions, and source structure.

What makes artificial intelligence context useful?

Useful context is relevant to the task, current, attributable to a source, permitted for the user, and concise enough for the model to apply.

Videos explaining context engineering