Prerequisites
- Python 3.10 or higher
- OpenAI API key (Get one here)
Installation
1
Install via pip
2
Initialize Memory
3
Add a memory
4
Search memories
By default
Memory() wires up:- OpenAI
gpt-4.1-nano-2025-04-14for fact extraction and updates - OpenAI
text-embedding-3-smallembeddings (1536 dimensions) - Qdrant vector store with on-disk data at
/tmp/qdrant - SQLite history at
~/.mem0/history.db - No reranker (add one in the config when you need it)
What’s Next?
Memory Operations
Learn how to search, update, and manage memories with full CRUD operations
Configuration
Customize Mem0 with different LLMs, vector stores, and embedders for production use
Advanced Features
Explore async support, graph memory, and multi-agent memory organization
Additional Resources
- OpenAI Compatibility - Use Mem0 with OpenAI-compatible chat completions
- Contributing Guide - Learn how to contribute to Mem0
- Examples - See Mem0 in action with Ollama and other integrations