Skip to main content

Long-term memory for AI Agents

Project description

Mem0: Long-Term Memory for LLMs

Mem0 provides a smart, self-improving memory layer for Large Language Models, enabling personalized AI experiences across applications.

Features

  • Persistent memory for users, sessions, and agents
  • Self-improving personalization
  • Simple API for easy integration
  • Cross-platform consistency

Quick Start

Installation

pip install mem0

Usage

from mem0 import Mem0

# Initialize client
client = Mem0(api_key="your-api-key")

# Add memory
client.add("User preference: dark mode", user_id="user123")

# Retrieve memories
memories = client.get_all(user_id="user123")

# Update memory
client.update(memory_id, data="Updated information")

# Delete memory
client.delete(memory_id)

Documentation

For detailed usage and API reference, visit our documentation.

Getting Started

  1. Sign up at Mem0 Platform
  2. Get your API key from the dashboard
  3. Install the SDK and start integrating

Support

Join our slack or discord community for support and discussions.

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

memzero-0.0.6.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

memzero-0.0.6-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page