Zenaique
Glossary · Foundations

Context Window

Also known as: Context length, Sequence length

The max number of tokens a model can attend to at once.

The maximum number of tokens a model can process in a single forward pass. Determines how much text can be included in a prompt. Modern models range from 4K to 1M+ tokens.

In practice

Drives RAG vs long-context trade-offs and inference cost. Senior questions cover RoPE scaling, attention's quadratic cost, and lost-in-the-middle.

Comparisons that include Context Window

Related topics

Related terms