learn
Context Window
What Context Window means, how it works, and which tools and models on this site relate to it.
Definition
A context window is how much tokenized input (and often output) a model can consider in one request.
How it works
Everything in the window — system instructions, retrieved docs, chat history, tool results — competes for space. Larger windows help long documents; they do not guarantee better reasoning.