- Glossary
- Context window
Glossary term
Context window
The maximum number of tokens a model can consider at once, counting the input and the output it generates.
Open lesson 3.1
What counts against the context window · Chapter 3, and 3 more lessons below
In plain words
Everything the model knows about the current task must fit in the context window: system prompt, tools, history, documents and the answer.
Taught in
Also in these lessons
Autoregressive generationByte-pair encoding (BPE)Context isolationLarge language model (LLM)Latencymax_tokensNext-token predictionParametersStop reasonStop sequenceToken countingTokenizer