AI Wisdom

Context Window

The maximum number of tokens an LLM can process in a single request (input + output combined).

In this article

The context window defines the model's working memory. GPT-4o supports 128K tokens, Claude 3.5 handles 200K, and Gemini 1.5 Pro offers up to 2M tokens. Larger windows enable processing longer documents but increase cost and latency. Efficient context management through chunking, summarisation, and selective retrieval is a key engineering skill.

What it means in practice

Context Window is not just vocabulary; it is a design handle. Use it as a reference point when comparing architecture choices, debugging implementation trade-offs, or explaining system behaviour to another engineer. It helps convert a vague technical conversation into a concrete design question with trade-offs that can be tested.

Why engineers care

  • It gives teams a shared name for the behaviour, risk, or architecture choice being discussed.
  • It helps separate the goal from the implementation detail, so you can compare alternatives instead of copying a tool pattern blindly.
  • It creates a useful checklist for reviews: inputs, outputs, failure modes, ownership, cost, latency, and measurement.

Production watch-outs

Be careful with shallow definitions. The useful meaning usually depends on workload, failure mode, data shape, and who owns the system in production.

Related context

Useful neighbouring concepts: Token, RAG, Chunking.

Discussion

Sign in to share your feedback and join the discussion.