Skip to content

Learning path · Context Engineering & Caching · 27

Memory Patterns

Architectures for what the system remembers across sessions—working context, summaries, vector recall, and external stores.

Why it matters

  • LLMs are stateless without deliberate memory design.
  • Wrong pattern leaks PII or stale preferences into prompts.
  • Agent systems need tiered memory with clear eviction rules.

Key ideas

  • Short-term vs long-term
  • Summarization
  • Retrieval-backed recall

Memory patterns decide how past interactions influence new answers. Inline history is simplest but hits window limits. Rolling summaries compress older turns. Vector memory retrieves relevant past facts by embedding similarity. Enterprise systems combine tiers: session buffer, user profile store, and authoritative knowledge base—with explicit consent and retention policies. Never assume the model remembers; wire memory through typed stores you can audit and delete. Document retention and deletion behaviour in user-facing privacy notices; memory you cannot erase becomes compliance debt quickly.

Updated 2026-08-09 · Full learning path