Context Window
Category: Generative AI / LLM
The maximum number of tokens a language model can process in a single input-output sequence, determining how much text it can consider at once.
Full Explanation
The context window defines the total token capacity of a language model for both input and output within a single interaction. Early models like GPT-3 had a 4K token context window, while modern models support significantly larger windows: GPT-4 Turbo supports 128K tokens, Claude supports up to 200K tokens, and Gemini supports up to 2M tokens. A larger context window allows the model to process longer documents, maintain more conversation history, and consider more retrieved context in RAG applications. However, performance may degrade for information located in the middle of very long contexts (the "lost in the middle" phenomenon). Longer contexts also increase computational cost and latency. The effective use of context windows involves prioritizing the most relevant information and structuring inputs for optimal model attention. Context window size is a key differentiator between model offerings.
Related Terms
More in Generative AI / LLM
Explore More
- AI Tools Library — Discover AI tools related to Context Window
- AI Education — Courses to learn about Generative AI / LLM
- AI News — Latest news and updates