Context window

The context window is the maximum number of tokens a model can consider at once, covering both your input and its output.

Everything the model 'knows' during a request must fit in this window: system prompt, conversation history, retrieved documents and the reply. Windows now range from a few thousand tokens to millions, but quality often degrades before the hard limit, so retrieval usually beats stuffing.

All AI terms