<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/do-llms-have-the-memory-of-a-goldfish--emspwzuab" -->

---
title: Do LLMs Have the Memory of a Goldfish? | daily.dev
description: LLMs have no built-in persistent memory; the appearance of remembering comes entirely from the surrounding application, which resends conversation history,...
canonical: https://daily.dev/posts/do-llms-have-the-memory-of-a-goldfish--emspwzuab
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Do LLMs Have the Memory of a Goldfish? | daily.dev
og:description: LLMs have no built-in persistent memory; the appearance of remembering comes entirely from the surrounding application, which resends conversation history,...
og:url: https://daily.dev/posts/do-llms-have-the-memory-of-a-goldfish--emspwzuab
og:image: https://api.daily.dev/og/posts/emSPWzuAB.png
og:image:alt: Do LLMs Have the Memory of a Goldfish?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Do LLMs Have the Memory of a Goldfish?

**[ByteByteGo](https://daily.dev/sources/bytebytego)** · 15 min read · 0 upvotes · 0 comments

## Summary

LLMs have no built-in persistent memory; the appearance of remembering comes entirely from the surrounding application, which resends conversation history, summaries, retrieved documents, and user profiles as part of each new prompt. The piece distinguishes trained memory (model weights), working memory (the context window), and persistent application memory (databases, vector stores, profiles). It explains how basic stateless API calls work, why long conversations grow expensive and latency increases, and what happens when context windows fill up (rejection, truncation, summarization, compaction). It then surveys techniques for extending effective memory: sliding windows, conversation summarization, structured entity extraction, vector-store-backed semantic retrieval, long-term user profiles, and cross-session memory pipelines, along with the tradeoffs and failure modes of each.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.bytebytego.com/p/do-llms-have-the-memory-of-a-goldfish>

## Questions this post answers

### Why does an LLM forget what I told it in a previous chat session?

LLMs have no personal or persistent memory of previous interactions; each API call is stateless and generated only from the model's trained weights plus whatever text is included in the current context window. Applications simulate memory by resending prior messages, summaries, or retrieved facts with every new request, so the model only appears to remember because the surrounding system reconstructs relevant context each time.

_Developers building conversational AI features can track context-management techniques for LLM memory on daily.dev._

### What is context rot in large language models?

Context rot is the degradation in an LLM's ability to distinguish important facts from irrelevant, repetitive, or contradictory material as the amount of information in its context window grows. Even with a very large context window, more tokens do not guarantee better recall, so applications still need to curate and select useful context rather than dumping everything into the prompt.

_Anyone tuning prompt and context strategies for LLM apps can follow techniques like this on daily.dev._

### What are the main techniques for giving an LLM application long-term memory across conversations?

Common techniques include sliding-window memory (keeping only recent turns), conversation summarization (compressing older messages), structured entity extraction (pulling facts into fields like preferred_language or confirmed_decisions), vector-store-backed semantic retrieval (embedding and searching past conversation chunks), and long-term user profiles storing durable preferences with timestamps and confidence scores. Real systems typically combine several of these rather than relying on just one.

_Engineers designing memory architecture for AI agents can compare these approaches on daily.dev._

## Similar posts on daily.dev

- [Why LLMs Don’t Have Memory — But Still Feel Smart](https://daily.dev/posts/why-llms-don-t-have-memory-but-still-feel-smart-drlmqhuv9) · We Are .NET · 1 upvotes · 0 comments
- [Design Patterns for Long-Term Memory in LLM-Powered Architectures](https://daily.dev/posts/design-patterns-for-long-term-memory-in-llm-powered-architectures-dklici0u7) · Serokell · 1 upvotes · 0 comments
- [How AI Agents Manage Memory and Avoid Forgetfulness](https://daily.dev/posts/how-ai-agents-manage-memory-and-avoid-forgetfulness-wzlg6idul) · ByteByteGo · 3 upvotes · 1 comments
- [Maintaining working memory in AI agents](https://daily.dev/posts/maintaining-working-memory-in-ai-agents-xrnflx37x) · We Are .NET · 2 upvotes · 0 comments

---

Tags: [#llm](https://daily.dev/tags/llm), [#prompt-engineering](https://daily.dev/tags/prompt-engineering), [#rag](https://daily.dev/tags/rag), [#vector-search](https://daily.dev/tags/vector-search)

[View this post on daily.dev](https://daily.dev/posts/do-llms-have-the-memory-of-a-goldfish--emspwzuab)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Do LLMs Have the Memory of a Goldfish?","url":"https://daily.dev/posts/do-llms-have-the-memory-of-a-goldfish--emspwzuab","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/do-llms-have-the-memory-of-a-goldfish--emspwzuab"},"datePublished":"2026-09-15T15:33:41.781Z","dateModified":"2026-09-15T15:34:06.457Z","description":"LLMs have no built-in persistent memory; the appearance of remembering comes entirely from the surrounding application, which resends conversation history,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/de63adde20fbfef5dd6e39737dde5e22?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/de63adde20fbfef5dd6e39737dde5e22?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"ByteByteGo","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ByteByteGo","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/35be29234ee14d01a9cd049c52e12753","url":"https://daily.dev/sources/bytebytego"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/do-llms-have-the-memory-of-a-goldfish--emspwzuab","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"llm,prompt-engineering,rag,vector-search","timeRequired":"PT15M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ByteByteGo","item":"https://daily.dev/sources/bytebytego"},{"@type":"ListItem","position":3,"name":"Do LLMs Have the Memory of a Goldfish?"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/do-llms-have-the-memory-of-a-goldfish--emspwzuab#faq","mainEntity":[{"@type":"Question","name":"Why does an LLM forget what I told it in a previous chat session?","acceptedAnswer":{"@type":"Answer","text":"LLMs have no personal or persistent memory of previous interactions; each API call is stateless and generated only from the model's trained weights plus whatever text is included in the current context window. Applications simulate memory by resending prior messages, summaries, or retrieved facts with every new request, so the model only appears to remember because the surrounding system reconstructs relevant context each time. Developers building conversational AI features can track context-management techniques for LLM memory on daily.dev."}},{"@type":"Question","name":"What is context rot in large language models?","acceptedAnswer":{"@type":"Answer","text":"Context rot is the degradation in an LLM's ability to distinguish important facts from irrelevant, repetitive, or contradictory material as the amount of information in its context window grows. Even with a very large context window, more tokens do not guarantee better recall, so applications still need to curate and select useful context rather than dumping everything into the prompt. Anyone tuning prompt and context strategies for LLM apps can follow techniques like this on daily.dev."}},{"@type":"Question","name":"What are the main techniques for giving an LLM application long-term memory across conversations?","acceptedAnswer":{"@type":"Answer","text":"Common techniques include sliding-window memory (keeping only recent turns), conversation summarization (compressing older messages), structured entity extraction (pulling facts into fields like preferred_language or confirmed_decisions), vector-store-backed semantic retrieval (embedding and searching past conversation chunks), and long-term user profiles storing durable preferences with timestamps and confidence scores. Real systems typically combine several of these rather than relying on just one. Engineers designing memory architecture for AI agents can compare these approaches on daily.dev."}}]}
```

