Skip to main content

Context Window Size (Current Conversation Memory)

The maximum amount of text (in tokens) that a language model can simultaneously retain in memory during an ongoing conversation. It determines the length of documents that can be loaded at once without loss of content.

1. Concept Overview & Systemic Problem

Imagine reading a book, but your memory is such that you can only remember the last 30 pages you just read. Once you turn to the 31st page, the events from the 1st page are irretrievably erased from your mind.

This is how the context window of a language model operates. It serves as its operational working memory.

Everything that enters the context window includes:

  1. System instruction ("You are an experienced tutor").
  2. All previous chat history in this specific conversation.
  3. Text from any files you have uploaded.
  4. Your current new question.

If the sum of all these elements exceeds the model's limit, older data begins to be "trimmed."

2. Architectural Taxonomy & Mental Model

┌─────────────────────────────────────────────────────────────┐
│                 EVOLUTION OF CONTEXT WINDOW SIZE           │
├─────────────────────────────────────────────────────────────┤
│ 📜 2022 (GPT-3.5):                                          │
│    [4,000 tokens] ➔ ~10 pages of text                      │
├─────────────────────────────────────────────────────────────┤
│ 📖 2023 (GPT-4 Turbo):                                    │
│    [128,000 tokens] ➔ ~300 pages (a thick book)           │
├─────────────────────────────────────────────────────────────┤
│ 📚 2024–2026 (Claude 3.5 Sonnet):                          │
│    [200,000 tokens] ➔ ~500 pages or the entire project code│
├─────────────────────────────────────────────────────────────┤
│ 🏛️ Google Gemini 1.5 Pro:                                 │
│    [2,000,000 tokens] ➔ A library of 35 books or 1 hour of video│
└─────────────────────────────────────────────────────────────┘

3. Why Conversations in One Chat Become "Dumber" Over Time (Context Rot)

Many newcomers make a typical mistake: they engage in the same endless dialogue for a month, asking questions about the weather, recipes, code corrections, and vacation plans.

Over time, such a chat accumulates tens of thousands of tokens of old, unnecessary clutter. The model begins to:

  • Respond more slowly.
  • Get confused in its own instructions.
  • Spend significantly more money for each new word.

4. The Golden Rule of Context Hygiene

One task — one new chat!

Once you finish working on a specific topic (e.g., writing an article or fixing a bug in a script) — open a new clean chat. This will refresh the model's operational memory, save your budget, and ensure the highest quality of responses without remnants of old clutter.

5. Pitfalls, Common Mistakes & Security

  • Neglecting Context Limits: Ignoring the context window size can lead to inefficient interactions and increased costs.
  • Overloading with Irrelevant Data: Feeding the model excessive or irrelevant information can degrade performance and response quality.
  • Failure to Refresh Context: Continuing a long conversation without starting a new chat can result in context rot, leading to slower responses and confusion in the model's outputs.
/ Frequently Asked QuestionsSchema.org FAQPage

FAQ: Context Window Size (Current Conversation Memory)

The model does not freeze but operates on a 'Sliding Window' principle: it literally 'pushes out' your earliest messages from memory to make room for new input. As a result, it forgets what was discussed at the beginning of the chat.
/ Internal links
All terms