What is context?

Context is the complete bundle of text and structured data passed into a large language model for a single inference call—including the system prompt, conversation history, tool schemas, tool outputs, and retrieved notes. Context engineering is the discipline of curating what enters that window so the model stays accurate, fast, and cost-efficient.

By Sacha Arbonel, Founder and CTOLast updated
  • Also called
  • Context window
  • Context engineering

Why does context matter?

A model cannot act on facts outside its current context, yet dumping irrelevant logs and oversized tool payloads into the window degrades reasoning accuracy, increases latency, and inflates token costs.

A model only knows what is in its context for that call. Context engineering is choosing what goes in: the right instructions, the relevant history and the tool results it needs, without burying the important parts.

Context has a size limit, measured in tokens, and longer context costs more. Good agents keep it focused rather than as large as possible.

Key characteristics of context

  • Combines system instructions, available tool definitions, session turns, and retrieved records.
  • Bounded by the model’s maximum context window, measured in input plus output tokens.
  • Directly drives per-run latency and cost because every token in context is billed on every step.
  • Performs best when tool responses are trimmed to essential fields rather than raw payloads.

Example in practice

How Norilu handles context

Frequently asked questions

Does a larger context window mean I should include all company docs in every prompt?
No. Even when a model accepts hundreds of thousands of tokens, burying key rules inside noisy text lowers accuracy and slows down every turn. Retrieve only what is relevant.
What is context engineering?
Context engineering is designing how instructions, skills, conversation history, memory notes, and tool outputs are selected and formatted before each model call.

Go deeper