← Back to list

Your AI Didn’t Forget. It Never Remembered.

The Most Misunderstood Concept in AI: Context Windows

wavmoon_ai · 2026-06-18 16:30 · 0 claps · 4.2 min read
#ai #software-development #software-engineering #llm #data-science
Open on Medium ↗
Wiki topics: LLM · Large Language Models ML · Machine Learning AI · AI · General 🔬 · Science · General

Your AI Didn’t Forget. It Never Remembered.

The Most Misunderstood Concept in AI: Context Windows

A few months ago, I was talking to a developer who was building an AI-powered customer support assistant.

He looked frustrated.

“The model keeps forgetting things,” he said.

“What do you mean?” I asked.

“I told it the customer’s policy number at the beginning of the conversation. Twenty minutes later it asked for the same information again.”

Fair complaint.

If a human did that, we’d call it forgetfulness.

But here’s the interesting part:

The AI didn’t forget.

Because it never remembered in the first place.

And that single misunderstanding sits at the heart of countless AI architecture mistakes being made today.

Let’s Start Like We’re 15

Imagine you’re sitting in an exam hall.

You are allowed to carry exactly one sheet of paper.

Everything you can see on that sheet is available to you.

Everything not on that sheet might as well not exist.

Now imagine someone keeps adding information to the sheet.

Eventually it becomes full.

To add new information, old information must be erased.

That’s essentially how a context window works.

The AI does not have a long-term memory like humans.

Instead, it has a limited workspace.

Everything it can “think about” must fit inside that workspace.

Once information falls outside the workspace, it disappears from the model’s perspective.

Not hidden.

Not archived.

Gone.

The Human Brain vs The LLM

Humans have:

  • Short-term memory
  • Long-term memory
  • Experiences
  • Associations

If I ask:

What was your first school?

You don’t search through every conversation you’ve ever had.

You retrieve a memory.

LLMs don’t do that.

They don’t have personal experiences.

They don’t store memories between conversations.

They don’t retrieve childhood moments.

Every request starts with:

What tokens do I currently see?

Nothing more.

Nothing less.

This is the first mental model every AI engineer must understand.

What Is a Context Window?

A context window is the amount of information a model can process at one time.

Remember our previous discussion about tokens?

The context window is measured in tokens.

Not words.

Not pages.

Tokens.

For example:

A model might support:

  • 32K tokens
  • 128K tokens
  • 1M tokens

That simply means:

The model can only “see” that many tokens at once.

Think of it as the AI’s working memory.

Not memory.

Working memory.

The distinction matters.

A Simple Example

Let’s imagine a model with room for only 10 tokens.

Conversation:

User: My name is Pushkar.
AI: Nice to meet you.
User: I work as a software engineer.
AI: That's great.
User: What's my name?

If the earlier tokens are still inside the context window:

The AI answers:

Pushkar.

If those tokens have been pushed out because the conversation became too long:

The AI answers:

I don’t know.

Not because it forgot.

Because it literally cannot see the information anymore.

The Biggest Illusion In AI

Many users believe:

The AI remembers everything we’ve discussed.

It doesn’t.

What actually happens is:

The application keeps sending previous conversation history back to the model.

The model appears to remember because it is being shown the old information repeatedly.

The memory often exists in the application.

Not inside the model.

This is an incredibly important distinction.

Because many engineers accidentally attribute system behavior to the model when the behavior is actually coming from the surrounding software.

Why Context Windows Matter In Production

Let’s move from theory to engineering.

Suppose you’re building:

  • A customer support chatbot
  • An AI coding assistant
  • A legal document analyzer
  • An insurance advisor

The first version works beautifully.

Then production traffic arrives.

Customers upload:

  • PDFs
  • Emails
  • Images
  • Long chat histories

Suddenly:

  • responses become slower
  • costs increase
  • information gets lost
  • model quality degrades

Why?

Because context is growing.

Every token added consumes part of the available context window.

At some point something has to give.

The system must:

  • truncate older messages
  • summarize conversations
  • retrieve only relevant information
  • store external memory

This is where architecture begins.

Bigger Context Windows Are Not Magic

Many people assume:

Bigger context window = problem solved.

Not exactly.

Imagine reading a 2,000-page book and then answering a question about a sentence on page 17.

Technically the information is available.

Practically finding the right information becomes harder.

The same challenge exists for models.

A larger context window helps.

But it does not automatically guarantee better reasoning.

More context can sometimes introduce:

  • noise
  • distraction
  • irrelevant information
  • higher latency
  • higher cost

As engineers, we’ve learned this lesson before.

More data is not always better data.

This Is Why RAG Exists

One of the most common questions is:

“If models have huge context windows, why do we need RAG?”

Because context windows are not memory systems.

They’re working spaces.

RAG (Retrieval-Augmented Generation) solves a different problem.

Instead of stuffing everything into the context window, the system retrieves only the information relevant to the current question.

Think of it this way:

Without RAG:

Read the entire library.

With RAG:

Fetch only the three books needed right now.

Much more efficient.

Much cheaper.

Usually much smarter.

The Senior Engineer Perspective

Traditional software engineers think about:

  • CPU
  • memory
  • storage
  • network bandwidth

AI engineers must think about:

  • tokens
  • context utilization
  • retrieval efficiency
  • memory architecture

Because context windows directly affect:

  • latency
  • cost
  • response quality
  • system scalability

A poorly designed context strategy can destroy an otherwise excellent AI application.

The Architecture Shift

When developers first start using LLMs, they focus on prompts.

Experienced AI engineers eventually realize:

The prompt is often the easy part.

The hard part is deciding:

  • What information should enter the context?
  • What information should stay out?
  • What information should be summarized?
  • What information should be retrieved dynamically?
  • What information should be stored externally?

Those questions determine whether an AI system scales.

Not prompt wording.

A Better Mental Model

Think of context windows like RAM.

RAM is not permanent storage.

RAM is temporary workspace.

Similarly:

The context window is not memory.

The context window is temporary workspace for reasoning.

Once you understand that distinction, many AI concepts suddenly become clearer:

  • Why models appear to forget
  • Why conversation history matters
  • Why RAG exists
  • Why vector databases exist
  • Why agent memory systems exist
  • Why context engineering is becoming a discipline of its own

One of the most common phrases in AI is:

“The model forgot.”

Most of the time, that’s not true.

The model didn’t forget.

The information simply fell outside the workspace it could see.

And that’s an important distinction.

Because when you’re building production AI systems, the challenge isn’t teaching the model to remember.

The challenge is designing systems that decide what should be remembered, when it should be retrieved, and how it should enter the context at exactly the right moment.

That’s not a prompting problem.

That’s an architecture problem.


메타데이터
post_id
f9cda8938d39
slug
your-ai-didnt-forget-it-never-remembered-f9cda8938d39
url
https://medium.com/@ravikumar_67667/your-ai-didnt-forget-it-never-remembered-f9cda8938d39
canonical_url
https://medium.com/@ravikumar_67667/your-ai-didnt-forget-it-never-remembered-f9cda8938d39
author_url
https://medium.com/@ravikumar_67667
status
ok
fetched_at
2026-06-20 20:29:01