Mem0

Active
GitHub Python Apache-2.0

Description

Mem0 is a long-term memory layer for AI agents, supporting cross-session memory management and personalized context retrieval.

Key Features

  • Multi-level memory — seamlessly manages user, session, and agent memory states with adaptive personalization
  • Single-pass ADD extraction — one LLM call extracts memories with no UPDATE/DELETE, memories accumulate only
  • Entity linking — entities extracted, embedded, and linked across memories for retrieval boosting
  • Multi-signal retrieval — semantic search, BM25 keyword matching, and entity matching scored in parallel and fused
  • Temporal reasoning — time-aware retrieval ranking for queries about current state, past events, and upcoming plans
  • Cross-platform SDK — Python and Node.js SDKs with CLI, self-hosted server, and cloud platform deployment options

Use Cases

💡 Personalized AI assistants: let chatbots remember user preferences and conversation history for consistent personalized experience
💡 Customer support systems: recall past tickets and user records to provide agents with full context for fast resolution
💡 Healthcare management: track patient preferences and medical history to support personalized care
💡 AI coding assistant memory: let tools like Claude Code remember project conventions, code styles, and past decisions
💡 Adaptive learning systems: automatically adjust teaching strategies and content recommendations based on user behavior

Strengths & Limitations

Strengths

  • Actively maintained, recent updates
  • High community interest (63.4k stars)
  • Permissive open-source license (Apache-2.0)
  • Established track record (3 years in production)

Quick Start

# Install Mem0
pip install mem0ai

# Quick start: add and search memories
from mem0 import Memory

m = Memory()

# Add a memory
m.add("User prefers dark mode", user_id="alice")

# Search memories
results = m.search("user interface preferences", user_id="alice")
print(results)

Related Projects

Graphiti

30.0k · Python
Active A+

Graphiti is a temporal knowledge-graph engine for agent memory, helping systems continuously accumulate long-term context.

memoryknowledge-graphrag +1
  • · Temporal fact management — Each fact has a validity window; old facts are invalidated, not deleted. Query what's true now or at any point in time
  • · Provenance & lineage tracking — Every entity and relationship traces back to raw data episodes, full lineage from derived fact to source
  • · Hybrid retrieval — Combines semantic embeddings, keyword BM25, and graph traversal for low-latency high-precision queries without LLM summarization

MemAgent

1.1k · Python
Stale B

A MemAgent framework that can extrapolate to 3.5M context tokens, along with a training framework for RL training of any agent workflow.

memoryagentrag +2
  • · Ultra-Long Context Processing: Extrapolate from 8K training context to 3.5M tokens with performance loss under 5%
  • · Reinforcement Learning Driven: Trained with RLVR (Reinforcement Learning from Verifiable Rewards), extends DAPO algorithm for end-to-end multi-turn conversation optimization
  • · Linear Time Complexity: Breaks through computational bottlenecks in long-text processing with linear resource scaling

HyperDB

1.4k · Python
Stale C

A hyper-fast local vector database for use with LLM Agents, providing lightweight vector storage and similarity search capabilities for embedding as instant memory and knowledge retrieval components in agent applications.

vector-databasepythonagent +2
  • · Hyper-fast local vector database designed specifically for LLM Agents
  • · C++ high-performance backend with hardware-accelerated operations via MKL BLAS
  • · Simple unified interface compatible with all major LLM agent frameworks

Related Articles