Skip to content

Introduction

Fresh

Mem0 is a universal, self-improving memory layer for LLM applications that enables persistent context across sessions. It provides intelligent memory management that captures, organizes, and retrieves information automatically.

What is Mem0?

Mem0 solves a fundamental problem with LLM applications: they forget everything between sessions. Every conversation starts from scratch, forcing users to repeat context and preferences.

Mem0 adds a persistent memory layer that:

  • Captures key facts, preferences, and decisions from conversations
  • Organizes memories with smart deduplication and categorization
  • Retrieves relevant context in sub-50ms for real-time applications
  • Updates automatically when information changes or conflicts arise

Two Ways to Use Mem0

Mem0 Platform (Managed)

Production-ready in 5 minutes. No infrastructure to manage.

  • Hosted vector store, graph services, and rerankers
  • SOC 2 Type II compliant, GDPR ready
  • Dashboard for visual memory inspection
  • Auto-scaling and high availability

Get Started with Platform

Mem0 Open Source

Self-host for full control over data and deployment.

  • Apache 2.0 license
  • Choose your own LLM, vector DB, and embedder
  • Offline capability for privacy-critical deployments
  • Fully customizable codebase

Get Started with Open Source

How It Works

mermaid
graph LR
    A[User Message] --> B[Mem0 Engine]
    B --> C[Extract Facts]
    C --> D[Check Conflicts]
    D --> E[Store Memory]
    E --> F[Vector Store]
    E --> G[Graph Store]
    H[Search Query] --> B
    B --> I[Retrieve Relevant Memories]
    F --> I
    G --> I
  1. Messages come in -- User/assistant conversation turns are sent to add()
  2. Facts are extracted -- LLM identifies key preferences, decisions, and entities
  3. Conflicts are resolved -- Existing memories are checked for duplicates and contradictions
  4. Memories are stored -- Vector embeddings and optional graph relations are created
  5. Context is retrieved -- Semantic search returns relevant memories in sub-50ms

Key Features

FeatureDescription
Smart DeduplicationAutomatically detects and merges duplicate information
Conflict ResolutionUpdates memories when new information contradicts existing ones
Graph MemoryTracks entity relationships for richer context
MultimodalExtracts memories from text, images, and documents
Custom CategoriesReplace default tags with your own terminology
WebhooksReal-time notifications for memory events
Memory ExportStructured export of all stored memories
ExpirationAutomatic cleanup of time-sensitive memories

Platform vs Open Source

FeaturePlatformOpen Source
Time to first memory5 minutes15-30 minutes
InfrastructureFully managedSelf-hosted
Vector DBManaged27+ options
LLM providersManaged (optimized)20+ options
Graph MemoryManagedSelf-configured
WebhooksBuilt-inNot available
DashboardWeb-basedNot available
LicenseUsage-basedApache 2.0 (free)
Best forFast iteration, productionFull control, cost optimization

Next Steps

SOP Documentation Site for Mem0