711
Dictionary

Context Window

The maximum amount of text (in tokens) an LLM can consider in a single call.

1 min readupdated 2026-06-21

/ quick answer

The Context Window is the hard limit on how much input + output a model can hold at once, measured in tokens. Larger windows allow longer documents and richer agent state, but cost more and can dilute attention — making retrieval and summarization still essential.

The maximum amount of text (in tokens) an LLM can consider in a single call. The Context Window is the hard limit on how much input + output a model can hold at once, measured in tokens. Larger windows allow longer documents and richer agent state, but cost more and can dilute attention — making retrieval and summarization still essential. In practice: A 1M-token model could read an entire codebase at once, but a focused 8K-token RAG pipeline answering one question is often cheaper, faster and more accurate.
Definition
The Context Window is the hard limit on how much input + output a model can hold at once, measured in tokens. Larger windows allow longer documents and richer agent state, but cost more and can dilute attention — making retrieval and summarization still essential.
Example
A 1M-token model could read an entire codebase at once, but a focused 8K-token RAG pipeline answering one question is often cheaper, faster and more accurate.
Related Workflows
Related Tool Stacks

/ frequently asked

What is Context Window?

The Context Window is the hard limit on how much input + output a model can hold at once, measured in tokens. Larger windows allow longer documents and richer agent state, but cost more and can dilute attention — making retrieval and summarization still essential.

What is an example of Context Window?

A 1M-token model could read an entire codebase at once, but a focused 8K-token RAG pipeline answering one question is often cheaper, faster and more accurate.

Why does Context Window matter?

The maximum amount of text (in tokens) an LLM can consider in a single call.

What should I learn after Context Window?

Open the related workflows and prompts further down this page: they show how this idea is applied in a real task, step by step.

/ topics#ai#models

/ continue exploring

Related concepts

The vocabulary this page depends on.

  • →Contextual Compression

    Contextual compression is a technique used to reduce the size of the input context for a Large Language Model (LLM) while retaining its most relevant information, typically by summarizing or filtering.

  • →Token Budgeting

    Token budgeting is the strategic allocation and management of token usage within large language model (LLM) operations to control costs and optimize performance.

  • →Token Budget

    A token budget is a predefined limit on the number of tokens an AI application or specific request can consume within a given period or for a single interaction. It is a critical mechanism for controlling costs and managing resource allocation for Large Language Model (LLM) usage.

  • →Context Engineering

    Context engineering is the discipline of deciding exactly what information enters a model's context window, in what order and at what cost.

all dictionary →

Related workflows

Turn this into a repeatable process.

all workflows →

Related tool stacks

The tools that run it in production.

all tool stacks →

Comparisons & alternatives

Pick between the options.

all comparisons →