memobase  by memodb-io

Memory system for GenAI apps, enabling long-term user understanding

created 11 months ago
1,987 stars

Top 22.2% on SourcePulse

GitHubView on GitHub
Project Summary

Memobase provides a profile-based long-term memory system for Generative AI applications, enabling AI to remember, understand, and evolve with users. It targets developers building personalized AI companions, educational tools, and assistants, offering structured user profiles and time-aware event recording to enhance user interaction and AI personalization.

How It Works

Memobase stores user data as "blobs" associated with unique user IDs. These blobs are processed in batches and flushed into structured profiles when a buffer limit is reached or after a period of inactivity. This approach allows for efficient processing and avoids keeping raw conversation data in the hot path, while the flush() mechanism ensures memory is updated periodically or on demand. The system leverages FastAPI, PostgreSQL, and Redis for a robust backend.

Quick Start & Requirements

Highlighted Details

  • Offers SOTA performance benchmarks against competitors like mem0 and zep.
  • Features time-aware memory for recording user events, improving temporal recall.
  • Provides controllable memory configuration to tailor profile data.
  • Supports batch processing for efficient and cost-effective memory updates.

Maintenance & Community

  • Community support available via Discord.
  • Follow on Twitter: @memobase_io
  • Contribution guidelines and changelog are available.

Licensing & Compatibility

  • Licensed under Apache 2.0.
  • Permissive license suitable for commercial use and integration with closed-source applications.

Limitations & Caveats

By default, blobs are removed after processing, requiring explicit configuration for persistence. The README mentions a "buffer zone" for processing, with manual flush() calls recommended for session-based applications, implying potential latency in memory updates if not managed correctly.

Health Check
Last commit

5 days ago

Responsiveness

Inactive

Pull Requests (30d)
7
Issues (30d)
12
Star History
372 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.