LLMS · LESSON 20 OF 278

Context Windows

See that an LLM can only directly consider a bounded amount of current context.

What you will learn

See that an LLM can only directly consider a bounded amount of current context.

In simple words

A context window is the limited sequence of tokens available in one model call. Important material outside it must be summarised, retrieved, or otherwise brought back into the current context.

Visual explanation: What fits in view

A moving window highlights the tokens the model can use while older context fades out.

WATCH THE IDEA

What fits in view

Playing
Earlier contextThemodelpredictsnext▮Current responseActive window
  1. 1Observe: Earlier context
  2. 2Transformation: Active window
  3. 3Outcome: Current response

Observe: Earlier context. A moving window highlights the tokens the model can use while older context fades out.

The diagram highlights Earlier context, Active window, Current response. Use the labels to trace the main relationship from left to right.

Real-world example: Account-history support

A support assistant receives years of customer activity but can only fit part in one model call.

What the team decides: Summarise durable facts and retrieve the most relevant records for the present issue.

Risk to avoid: Blindly dropping older context can lose a critical promise or compliance note.

Technical explanation

A context window is the limited sequence of tokens available in one model call. Important material outside it must be summarised, retrieved, or otherwise brought back into the current context.

Common misconception

This concept is not a guarantee of a correct outcome by itself. Its value depends on suitable evidence, careful implementation, and evaluation against the real task.

QUICK QUIZ

What happens when crucial information falls outside an LLM's context window?

Practical application

Summarise durable facts and retrieve the most relevant records for the present issue.

Key takeaway

Context is powerful but finite.

Next concept

Continue with Pretraining.

Was this lesson helpful?

Lesson discussion

Comments are reviewed before publication. Keep discussion focused on learning and do not post private information.

Loading discussion…

Your quiz answer and current lesson are saved on this device. Sign in to explore account-backed learning features.

Content version 1 · Last reviewed 2026-10-16