Context Window

Definition

A context window is the maximum span of tokens—prompt, history, and retrieved text—a language model can consider in one generation pass.

By Vinespire Editorial Team, Editorial ·

See our sourcing methodology →

TechnicalAI search glossary

This term is part of the full AI search glossary.

Full definition

LLMs process a finite token budget. Everything inside that window (system instructions, chat history, tool outputs, uploaded files) can influence the next answer; content outside the window is invisible unless summarized or re-retrieved.

Larger windows enable longer documents and multi-file analysis, but they do not guarantee perfect attention: models may still under-use buried details. RAG systems often retrieve only the most relevant chunks to stay within limits and improve focus.

For content authors, context windows explain why concise, well-structured sections and clear headings help both humans and retrieval pipelines. See RAG, Prompt, and Project Knowledge.

← All glossary terms