# Context window

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

Canonical URL: https://thecompanybrain.com.br/en/glossary/context-window
Authors: Luiz Gardelin
Updated: 2026-11-14T18:37:32.051Z

A context window is a model's token capacity for processing the context of an interaction. Google's glossary introduces the concept through [prompt](/en/glossary/ai-prompt) size. In practice, checking only the input may be insufficient: [OpenAI](/en/glossary/openai)'s [reasoning model](/en/glossary/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](https://developers.google.com/machine-learning/glossary#context_window) and [OpenAI, reasoning models](https://developers.openai.com/api/docs/guides/reasoning).

## 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](https://developers.google.com/machine-learning/glossary#prompt).

Material supplied as context also differs from the model's parameters. [Training](/en/glossary/model-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](https://developers.google.com/machine-learning/glossary#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](/en/glossary/token), 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

- [Machine Learning Glossary: Context window](https://developers.google.com/machine-learning/glossary#context_window): The Google definition is supplemented by the OpenAI example: generation and reasoning tokens also need room. Accounting rules depend on the interface and model.
- [Machine Learning Glossary: Prompt](https://developers.google.com/machine-learning/glossary#prompt)
- [Machine Learning Glossary: Training](https://developers.google.com/machine-learning/glossary#training)
- [OpenAI: Reasoning models](https://developers.openai.com/api/docs/guides/reasoning): Scope: reasoning models documented by OpenAI. Reasoning tokens occupy the window and room must remain for generation; this accounting is not a universal rule.

## Related reading

- [Token](/en/glossary/token)
- [Tokenization](/en/glossary/tokenization)
- [Model training](/en/glossary/model-training)
- [Company Brain: your company's knowledge, connected](/en/company-brain)
- [AI hallucination](/en/glossary/ai-hallucination)
- [AI prompt](/en/glossary/ai-prompt)
