examples/memory/.
How to run
Pick a starting point
- First time?
memory_typesshows all three variants on the same conversation, side by side. - Long sessions?
memory_summary_bufferis the right default — buffer keeps recent turns, summary keeps the long-tail facts. - Knowledge-graph use cases?
memory_knowledge_graphfor triple-shaped memory across sessions.
See also
Memory guide
All variants explained, when to reach for each.
Patterns → Stateful chat
Memory + persistence in a real chat backend.