Context Window

A context window is the maximum amount of input and generated tokens a model can consider at one time.
Also known as
context length

Intuition

It is the model's working room. If information falls outside the window, the model cannot directly attend to it.

Technical definition

Context window length is the supported sequence length for a model's token processing, constrained by architecture, memory, and serving implementation.

Example

A 128K-token context window can hold much more source material than an 8K-token window, but it may cost more to use.

Common misunderstandings

  • A larger context window does not guarantee better use of all context.
  • Long context still needs retrieval, ranking, and evaluation discipline.

Need this inside a product?

The studio builds the systems these terms describe. Tell us what you are working on.