Overview
Memori automatically captures information from conversations and recalls it when relevant. This guide shows you how to get started with basic memory operations.Quick Start
Using Self-Hosted Storage
For production use cases, you can use your own database instead of Memori Cloud.- SQLite
- PostgreSQL
- MongoDB
Manual Recall
You can manually retrieve relevant memories without making an LLM call.- Python
- TypeScript
How It Works
Capture
When you make an LLM call, Memori automatically captures the conversation in the background.
Extract
Memori analyzes the conversation and extracts key facts about the user (preferences, context, history).
Recall
On subsequent conversations, Memori searches for relevant facts and injects them into the system prompt.
Best Practices
Set Entity IDs
Always call
attribution() with an entity_id to ensure memories are properly associated with each user.Wait for Augmentation
For short-lived scripts, call
mem.augmentation.wait() before exiting to ensure memories are fully processed.Use Meaningful Process IDs
Set a
process_id to segment memories by application or workflow (e.g., “support-chat”, “onboarding”).Next Steps
Multi-User Management
Learn how to manage memories for multiple users
Streaming
Use Memori with streaming responses