Memory Strategies: Buffer, Window, Summary, Entity

~40 min read

Detailed comparison of the four conversational memory strategies and their implementation patterns.

Memory Strategies: Buffer, Window, Summary, Entity is a Pro topic

Sign in, then upgrade to Pro or Power to unlock this topic and the full AI Engineering curriculum.

Key points

  • Full buffer is correct for short conversations; windowed buffer for medium; summary memory for long; entity memory for structured facts
  • Always keep the system prompt separate — never let it fall out of a window slice
  • Set compression threshold at 70-80% of context limit, not 100%, to leave headroom for the summarization call