Back to full roadmap
topiccore
Memory Patterns
Summarizing old context in multi-turn chat, episodic memory, summary buffer.
3 hours1 resources1 prereqs
Once chat hits 50 turns, sending the entire history is pointless. Patterns:
- Sliding window — last N messages
- Summary buffer — periodically summarize old messages, keep the summary
- Vector memory — embed history, retrieve query-relevant entries
- Hierarchical memory — short-term (turns) + long-term (user profile)
LangChain, LangGraph, Mem0 implement these.