LLM Memory Explained: How ChatGPT, Claude and Gemini Remember You, and Why They Forget

· 16 min read

If you have used ChatGPT, Claude, or Gemini for a while, you have probably had two opposite experiences. In one, the assistant remembers that you run a B2B SaaS company in Austin and tailors its answer without being told. In another, it forgets something you said twenty messages ago and asks you to repeat it. Both experiences come from the same topic: LLM memory, which is not one thing but several different mechanisms stacked on top of each other.

For U.S. B2B SaaS teams, memory matters in two ways. First, it affects how useful AI tools are inside your company, and what data those tools keep. Second, it affects what your buyers see. When an assistant remembers that a buyer prefers certain vendors, works in healthcare, or already rejected a competitor, the answer that buyer gets about your category may differ from the answer anyone else gets.

This guide explains, in plain English, how AI models "remember," why they forget, what the major memory features actually store, the privacy and security questions they raise, and what personalized answers mean for how your brand shows up. If you are new to the topic, start with our practical guide to what an LLM is and our explainer on tokens and context windows.

Published November 25, 2026. This is an educational explainer for U.S. B2B SaaS teams. Memory features, settings, and retention policies change often, so check the current documentation and settings for the product you use. Examples with numbers or company situations are illustrative unless a source is named.

The Short Answer: The Model Itself Does Not Remember You

The most important fact about LLM memory is the least intuitive one. The underlying language model does not learn from your conversation. When you chat with an assistant, the model's weights, the billions of numbers it learned during training, stay exactly the same. Our explainer on how LLMs are trained covers where those weights come from.

What feels like memory is the product feeding the model text. Every time you send a message, the application assembles a package of text and sends it to the model: instructions from the provider, your earlier messages, perhaps some saved facts about you, perhaps some search results or documents. The model reads that whole package, writes a reply, and then, in effect, forgets everything. The next message starts the process again.

So when people say "ChatGPT remembered me," they usually mean the product stored something and placed it back in front of the model. That distinction is the key to understanding every behavior that follows.

The Four Kinds of LLM Memory

It helps to separate memory into four layers. Products blend them, but each one works differently.

A useful comparison is a consultant you hire. Training knowledge is their education. The context window is what is on the desk during today's meeting. Saved memory is the short notes file they keep on your account. Retrieved memory is their ability to search old meeting notes when a topic comes up. A great consultant uses all four, and so does a modern AI assistant.

Short-Term Memory: The Context Window

Within a single conversation, an assistant "remembers" earlier messages because the product resends them with each new message. The model sees the whole transcript, or as much of it as fits.

That limit is the context window, measured in tokens, the pieces of words that models read. Current models from major providers support context windows of hundreds of thousands of tokens, and some support around a million. That sounds like plenty, and for most chats it is. But three problems appear in long conversations.

The window can fill up. When a conversation exceeds the limit, the product must drop, shorten, or summarize older parts. Different products do this differently, and they do not always tell you. A detail from the start of a long session can quietly fall out.

Models do not use all of the window equally. Research has shown that models can struggle with information buried in the middle of long inputs. In Lost in the Middle: How Language Models Use Long Contexts, Liu and colleagues found that performance was often highest when relevant information appeared at the beginning or end of the input and dropped when it sat in the middle. Newer models have improved, but long inputs still carry this risk.

Long conversations accumulate noise. Abandoned ideas, corrected mistakes, and changed instructions all remain in the transcript. The model may follow an instruction you replaced an hour ago. Starting a fresh chat with a clean summary is often more reliable than pushing one conversation for days.

The practical lesson: if a fact matters, state it clearly and close to the question, and do not assume a long chat still has it in view.

Long-Term Memory: Saved Facts and Preferences

Long-term memory features store information between conversations. The major consumer assistants each offer a version, with different designs and controls.

OpenAI describes ChatGPT's memory in its Memory FAQ. ChatGPT can use saved memories, details you ask it to remember or that it decides are useful, and it can also reference past chat history. Users can view and delete saved memories, turn memory off, or use a temporary chat that does not use or create memories.

Anthropic has introduced memory for Claude, including the ability to search and reference past conversations and, for some plans, project-based memory that keeps work contexts separate. Users can view and edit what Claude remembers and turn the feature off.

Google has described personal context in Gemini, which lets Gemini learn from past chats to personalize answers, along with temporary chats and controls over what is kept.

The details differ and change frequently, but the common pattern is the same:

  1. The product decides, or you tell it, that a fact is worth keeping, such as "I lead marketing at a cybersecurity SaaS company."
  2. It stores that fact outside the model, often as short text.
  3. In later conversations, it selects relevant stored facts and inserts them into the request, usually where you cannot see them.
  4. The model reads those facts alongside your question and shapes its answer accordingly.

Nothing in that process changes the model. Delete the stored fact and the behavior it caused goes away, at least for new conversations.

Retrieved Memory: Searching Past Chats and Files

The fourth layer works like retrieval-augmented generation. Instead of keeping a short list of facts, the product indexes a larger body of material, your past conversations, uploaded files, connected drives, or a shared workspace, and searches it when a question seems related.

Retrieval usually relies on embeddings and vector search, which find passages by meaning rather than exact keywords. When you ask "what did we decide about the pricing page?", the product searches for passages about pricing decisions, places the best matches in the context window, and lets the model answer from them.

This is powerful, and it has the same weaknesses as any retrieval system. The search can miss the right passage, return an older version of a decision, or surface something only loosely related. The model can then answer confidently from the wrong material. Retrieved memory is only as good as what was found.

How Memory Works in Agents and Business Tools

For companies building on AI rather than just using chat assistants, memory is an engineering choice. Developers who use model APIs generally get no memory by default. Each API request is independent, and the application decides what to send.

Teams typically combine several techniques:

Research has explored more elaborate designs. MemGPT, by Packer and colleagues, borrowed the idea of an operating system's memory hierarchy, letting a model move information between a small working context and larger external storage. Ideas like this have influenced how agent frameworks handle memory, though production systems usually use simpler, more predictable approaches.

A practical rule for builders: decide exactly what your application should remember, for how long, and who can see it, before choosing a technique. Memory that nobody designed tends to become memory nobody can explain.

Why AI Assistants Forget, Even With Memory On

Users are often surprised that an assistant with memory enabled still forgets. There are several ordinary reasons.

The reverse problem also happens. An assistant may remember something you would prefer it forgot, such as an old job title, a project you cancelled, or an assumption it inferred incorrectly. Reviewing saved memories periodically is good hygiene for anyone who uses these tools daily.

Memory, Privacy, and Security

Memory raises real questions for businesses, and they deserve deliberate answers rather than defaults.

What is stored, and where? Saved memories and chat histories are data held by the provider under its terms and your account settings. Business and enterprise plans often have different retention, training, and administration terms than consumer plans. Read the current terms for the plan your team actually uses.

Who can see it? In shared workspaces, it matters whether memory is personal or shared across a team. A detail one employee mentions should not leak into another employee's answers unless that is intended.

Can it be manipulated? Memory creates a new target for prompt injection. If an assistant reads a malicious web page or document, hidden instructions could try to make it store false "memories" that influence later conversations. Security researchers have demonstrated attacks of this kind against memory features, and providers have responded with mitigations. Treat memory as part of your security model, not a convenience feature outside it.

Does it create compliance obligations? Depending on your industry and the data involved, stored conversations may fall under privacy laws, contracts, or internal records policies. U.S. state privacy laws, such as the California Consumer Privacy Act, give consumers rights over personal information, and your vendor agreements may restrict where customer data can go.

A sensible internal policy covers four points: which AI tools are approved, whether memory is enabled on them, what kinds of information must never be entered, and how employees can review and delete what was stored.

What Memory Means for Brand Visibility

Here is where memory connects directly to how B2B SaaS companies are discovered. When AI answers are personalized, there is no single answer to "What is the best tool for X?"

Consider an illustrative example. Two buyers ask the same assistant for the best customer onboarding software for a mid-size SaaS company. The first has memory that says they work at a healthcare company and care about HIPAA. The second has memory that says they use HubSpot and want fast setup. The assistant may emphasize different vendors to each, based on those stored details, even though the question was word for word the same.

Three consequences follow for marketing teams.

One test is never the answer. Running a prompt once in your own account tells you what the assistant says to you, shaped by your history. It does not tell you what your buyers see. Testing should use clean sessions, temporary chats, or API access without memory, and should be repeated, because answers also vary for reasons covered in our guide to LLM temperature and sampling.

Context fit matters more. Personalization rewards brands whose public information clearly states who they serve. If your site plainly says which industries, company sizes, integrations, and compliance standards you support, an assistant has the facts it needs to match you to a buyer whose memory contains those same details. Vague positioning gives it nothing to connect.

The baseline still comes from public evidence. Memory changes emphasis, but the assistant can only recommend vendors it knows about from training data or retrieval. Personalization filters and reorders a set of candidates; it does not invent a vendor that has no presence. Being consistently described across your own pages and credible third-party sources is still the foundation.

How to Measure AI Answers When Memory Exists

Because memory and randomness both shape answers, measurement needs a disciplined method. Here is a practical approach.

  1. Write the buyer questions. List ten to twenty questions real buyers ask, by role and use case.
  2. Use clean conditions. Run questions in temporary chats, logged-out sessions where available, or API calls with no stored history. Record the conditions.
  3. Add a few personas deliberately. Separately, test a small number of realistic buyer contexts, for example "I'm a VP of Sales at a 200-person fintech company," stated in the prompt so the condition is documented rather than hidden in memory.
  4. Repeat each question. Run each one several times per engine, because a single answer can be an outlier.
  5. Record everything. Save the engine, mode, date, prompt, verbatim answer, cited sources, and whether your brand appeared and was described accurately.
  6. Compare over time. Re-run the same set under the same conditions monthly and after major changes.

This is the same observation discipline we describe in our prompt engineering guide: document the conditions, so differences mean something.

A 30/60-Day Plan for B2B SaaS Teams

Days 1 to 30

Days 31 to 60

Avoid treating one improved answer as proof. Look for consistent improvement across repeated runs and several weeks.

Common Misconceptions

"The AI learns from every conversation I have." The model's weights do not change during your chat. Products may store memories or, depending on settings and plan, use conversations to train future models, but those are separate processes with separate controls.

"Turning off memory makes the assistant private." It stops personalization from saved memory, but conversations may still be retained under the provider's terms. Check retention and training settings separately.

"A bigger context window means perfect memory." Larger windows help, but models can still miss information in long inputs, and very long conversations accumulate conflicting instructions.

"If ChatGPT recommends us to me, it recommends us to everyone." Your result may reflect your own history and chance. Clean, repeated tests are the only reliable signal.

"Memory is only a consumer feature." Business tools, agents, and internal assistants all use memory designs. Someone in your company is making memory decisions, whether or not they are written down.

The Bottom Line

LLM memory is not the model remembering. It is the product storing text and feeding it back: the conversation in the context window, saved facts between sessions, and past material pulled in by search. Understanding those layers explains why assistants sometimes forget, sometimes remember too much, and give different people different answers.

For B2B SaaS teams, the response is twofold. Inside the company, treat memory as data, with clear policies and settings. Outside, accept that buyers see personalized answers, measure them with clean and documented tests, and make your public information specific enough that an assistant can match you to the right buyer.

If you want to see how AI engines describe your product to different buyer profiles, and which pages shape those answers, book a strategy call with LLM Recommend. For related reading, see our guides on LLM hallucinations and how to evaluate LLMs.

Frequently Asked Questions

Does ChatGPT remember previous conversations?

It can, if memory features are enabled. ChatGPT can keep saved memories and reference past chat history, and users can view, delete, or turn these off, or use temporary chats. The underlying model does not learn from your conversation; the product stores information and feeds it back into later requests.

What is the difference between a context window and LLM memory?

The context window is the text a model can see in a single request, including the current conversation. Long-term memory is information a product stores between conversations, such as saved facts or searchable past chats, and inserts into future requests when it seems relevant.

Why does an AI assistant forget things I told it?

It may never have saved the detail, may not have retrieved it for the current question, may have dropped it when a long conversation filled the context window, or may have followed a conflicting newer instruction. Memory may also be off for that chat or workspace.

Is AI chatbot memory a privacy risk for businesses?

It can be. Stored memories and chat histories are data held under the provider's terms and your plan's settings. Businesses should decide which tools are approved, whether memory is enabled, what information must never be entered, and how stored data is reviewed and deleted.

Does memory change which brands AI assistants recommend?

It can change emphasis. When an assistant knows a buyer's industry, tools, or preferences, it may highlight different vendors for the same question. It still chooses from vendors it knows through training data or retrieval, so clear public information about who you serve remains essential.

How should we test AI answers about our brand if memory personalizes them?

Use clean sessions such as temporary chats or API calls without stored history, add a few documented buyer personas stated in the prompt, repeat each question several times per engine, and record the engine, mode, date, verbatim answer, and sources. Compare results under the same conditions over time.