Skip to content
Book a conversation

Context window

Understand what a context window limits and how to select information for a request without confusing available context with learned parameters.

Luiz GardelinUpdated Read in Markdown
All terms

A conversation about your organization.

Before recommending any tool, we talk with your teams and map how the work really happens.

Arrange a conversation
On this pageIntroduction

Also used as: context length, context limit.

A context window is a model's token capacity for processing the context of an interaction. Google's glossary introduces the concept through prompt size. In practice, checking only the input may be insufficient: OpenAI's reasoning model documentation states that reasoning tokens also occupy the window and that space must remain for generation. Accounting rules depend on the interface and model. Sources: Google, context window and OpenAI, reasoning models.

What is available for that request

An input can contain a question, instructions, examples, and reference text. A prompt can be short or extensive; it is not limited to the last sentence a person typed. Planning a request therefore involves identifying the full set of information that will actually be supplied. Source: Google, prompt.

Material supplied as context also differs from the model's parameters. Training adjusts parameters using examples. Placing a document in an input does not, by itself, perform that process. A request containing documents therefore does not establish that the model has permanently incorporated the organization's knowledge. Source: Google, training.

Hypothetical workplace example

A team wants to compare three versions of a procedure and identify changes in responsibilities. Before sending the files, it should count the texts, question, and instructions, then check how much room needs to remain for generation and, where applicable, reasoning. This check follows the documented limits of the chosen interface and model. The count needs to use tokens, rather than only pages or words.

If the material exceeds the limit, one option is to narrow the comparison to the relevant sections. The team should also preserve version identifiers and the passages needed to check the conclusion. Selection should retain information decisive to the question rather than aim to supply the largest possible volume.

A large window does not replace document organization, task definition, or checking the sources. Evaluation should examine whether the answer uses the right passages and distinguishes conflicting versions. Capacity and accounting rules determine what fits in the interaction; evaluating the result addresses whether the material was used appropriately.

Sources

  1. Machine Learning Glossary: Context window Google for Developers

    The Google definition is supplemented by the OpenAI example: generation and reasoning tokens also need room. Accounting rules depend on the interface and model.

  2. Machine Learning Glossary: Prompt Google for Developers
  3. Machine Learning Glossary: Training Google for Developers
  4. OpenAI: Reasoning models OpenAI

    Scope: reasoning models documented by OpenAI. Reasoning tokens occupy the window and room must remain for generation; this accounting is not a universal rule.

Written by

Luiz Gardelin

Founder and lead consultant at The Company Brain

Luiz Gardelin is the founder and lead consultant at The Company Brain, an AI organizational transformation consultancy based in Brazil. He also founded Webinhood and Tropk.ai.

See all content by this author

A conversation about your organization.

Before recommending any tool, we talk with your teams and map how the work really happens.

Arrange a conversation

Related terms

Continue reading

All resources