Guide

What is the difference between AI memory and the context window?

The context window is what a model reads in the current chat and ends with it; memory is information stored outside the chat that returns in later chats.

A bigger window does not give a tool memory, because the window starts empty in every new chat.

By Musab Alrakhis · Last reviewed:

Start for free No credit card needed

How do the context window, memory and RAG differ?

ItemContext windowMemoryRAG
What it isWhat the model reads right nowWhat is kept about you and your workA search over files whose results are added to the question
How long it lastsUntil the chat endsAcross chats, until you edit itAs long as the files stay
Who writes itYou and the model during the chatYou and the tool over timeYou, by uploading files
Does it change?Wiped with each new chatBuilds up and gets updatedFixed until you replace a file

Why is a large context window not enough?

Context windows grow with each model generation, and some now hold whole books. But they start empty in every new chat, so you fill them again each time.

Even within one chat, the longer it runs, the less attention the model pays to what came first.

What is RAG?

With retrieval-augmented generation (RAG) you upload files, and the tool searches them on each question and adds what it finds to the context. It suits fixed references such as a contract or a manual.

Memory changes with your work, and the model itself writes into it what the two of you agree.

How do the three work together in one request?

On each request, the tool searches your memory and files, puts what matters into the context window, and the model answers. Memory is the store; the window is the desk the work happens on.

Common questions

How big is the context window in ChatGPT, Claude and Gemini?

It differs by model and plan and changes with every release. Check each tool's official models page.

Does memory use up the context window?

Yes. What is retrieved goes into the window, which is why retrieving only the right fact matters.

Is Memory Bridge a form of RAG?

No. It is a memory: notes that build up, get updated and are written by your tools, searched by meaning on each request.

Keep reading

What is AI memory?

AI memory is what an AI tool keeps between one chat and the next. The types, how ChatGPT, Claude and Gemini remember you, and when you need a separate memory.

Why ChatGPT forgets

ChatGPT forgets because its memory keeps a summary of you, not every detail, and long chats outgrow what it reads at once. The causes, and how to make ChatGPT remember.

AI memory glossary

Short, plain definitions of AI memory terms: context, context window, built-in and shared memory, semantic search, RAG and others.

One memory. Every tool you use.

Start for free, no credit card needed. Your account arrives within minutes.

Start for free

No credit card needed · No commitment