Search across all documentation pages
8 pages in this section.
Understand long-term memory for AI agents. Learn what facts and preferences to persist across sessions and what ephemeral context to reset.
Learn to save and recall user preferences across sessions using long-term memory. Explore 8 Python examples, from basic typed records to persistence.
Learn to persist structured agent memory using file-based or database-backed stores. Implement a MemoryStore interface over JSON files or SQLite.
Optimize long-term memory retrieval in AI systems. Learn to use an always-on profile, query-time top-k, and token budgets to surface relevant facts.
Learn ten best practices for designing and maintaining long-term memory in AI agents, covering what to persist, how to store it, and ensuring accuracy.