Context Window
Updated 2026-07-30
Summary
The context window of a large language model (LLM) is the maximum amount of text or other tokenized input available to the model at one time when generating output. It is usually measured in tokens, which are units produced by the model's tokenizer rather than words or characters. In practical terms…
Definition
The maximum length of text that a model can 'see' and 'remember' in a single processing pass. Information beyond the window is truncated or forgotten. Scaffolding role: the bandwidth of working memory. Human working memory also has a context window (approximately 7±2 units). When the complexity of the problem you are handling exceeds this window, you become less capable. The solution is to use 'external storage' (writing things down) or 'information compression' (abstraction) to fit information into the window.
Introduction
How to use
The bandwidth of working memory. Human working memory also has a context window (approximately 7±2 units). When the complexity of the problem you are handling exceeds this window, you become less capable. The solution is to use 'external storage' (writing things down) or 'information compression' (abstraction) to fit information into the window.
Mechanism
Any information processing system is limited by 'immediate accessible capacity': what exceeds the limit is invisible or must be compressed. For LLMs, the window is the token limit; for humans, working memory is about 7±2 chunks. The coping strategies are consistent—use external storage to expand (notes/documents) or use abstraction to compress (outlines/models) to reduce information density, ensuring key content falls within the window.
Practice
In progress 0/5Practice this model in one real situation:
Cases
- - AI: For long documents exceeding the window, use vector databases + RAG for external retrieval instead of stuffing everything into the prompt. - Personal: Use outlines and notes for complex projects instead of relying on memory. - Meetings: Send the agenda in advance to reduce 'loading' occupancy.
Common pitfalls
- - Trying to stuff all information into the window, causing key information to be diluted. - Ignoring window limits, mistakenly assuming the model/self 'remembers everything'. - Only expanding capacity without structuring, making information still unusable.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- en.wikipedia.orghttps://en.wikipedia.org/wiki/Context_windowverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.