Skip to main content
Signocore

What is a context window?

A context window is the amount of text a large language model can take into account at one time. Everything the model works with in a single request has to fit inside it: the instructions, the conversation so far, any documents or search results added to the prompt, and the answer the model writes.

The window is measured in tokens, the units a model reads and writes. In English a token averages around three quarters of a word, so a window of 100,000 tokens holds roughly 75,000 words. Early models offered a few thousand tokens. Current models range from tens of thousands to a million tokens or more.

What happens at the limit

A model has no memory between requests. A chat that seems to remember earlier messages sends them again each time, so long conversations eventually fill the window. When that happens, the application has to drop or summarize older material, and the model loses track of what was said at the start.

A bigger window does not guarantee better use of it. Research has found that models tend to use information at the beginning and end of a long input more reliably than information in the middle. Longer inputs also cost more and take longer to process, since usage is typically billed per token.

Working within it

Applications rarely send everything they have. Retrieval-augmented generation fetches only the passages relevant to a question, often with semantic search over embeddings. Coding assistants and AI agents summarize earlier steps, load files only when needed, and read compact formats such as llms.txt instead of full web pages.

The context window is the model's working memory for one task. Deciding what goes into it, and what stays out, often matters more to the quality of an answer than the choice of model.

Also known as

Context length Context size

Have a question?

Get in touch if you'd like to learn more about this topic.