What is a context window?

Definition

An artificial intelligence context window limits how much text, code, image representation, tool data and generated output can fit in a model request. The limit is usually expressed in tokens rather than words or characters.

A very large reported context does not guarantee equal attention or accuracy across the full window. Users should test retrieval, instruction retention, cost and latency on realistic long inputs before depending on the advertised maximum.

Acronyms and aliases

context length synonymAI context window variantartificial intelligence context window variant

Frequently asked questions

What does a one-million-token context window mean?

It means the model interface can accept a combined tokenized context and output near that stated limit, subject to provider rules.

Does a larger context window always improve results?

No. Large inputs can increase cost and latency, and a model may still miss details or follow distant instructions inconsistently.

Videos explaining context window