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.
Guide
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:
| Item | Context window | Memory | RAG |
|---|---|---|---|
| What it is | What the model reads right now | What is kept about you and your work | A search over files whose results are added to the question |
| How long it lasts | Until the chat ends | Across chats, until you edit it | As long as the files stay |
| Who writes it | You and the model during the chat | You and the tool over time | You, by uploading files |
| Does it change? | Wiped with each new chat | Builds up and gets updated | Fixed until you replace a file |
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.
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.
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.
It differs by model and plan and changes with every release. Check each tool's official models page.
Yes. What is retrieved goes into the window, which is why retrieving only the right fact matters.
No. It is a memory: notes that build up, get updated and are written by your tools, searched by meaning on each request.
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.
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.
Short, plain definitions of AI memory terms: context, context window, built-in and shared memory, semantic search, RAG and others.
Start for free, no credit card needed. Your account arrives within minutes.
No credit card needed · No commitment