Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M5954

Context Window

Context Window
Learn & MetacognitionHigh supportCognitive Science
Included
account_tree

Updated 2026-07-30

Loading revision record…

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.

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/5

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

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.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Context_windowZH · Explicit
    verified
account_treeGenealogyexpand_more