starksm64/memory-service

A persistent memory service for AI agents that stores and manages conversation history, enabling agents to maintain context across sessions, replay conversations, fork conversations at any point, and perform semantic search across all conversations.

★ 0Forks 0GitHub ↗Compare

Project website ↗

README

Memory Service

Build

A persistent memory service for AI agents that stores and manages conversation history, enabling agents to maintain context across sessions, replay conversations, fork conversations at any point, and perform semantic search across all conversations.

Features

  • Persistent conversation storage - All messages are stored with full context and metadata
  • Resumable response streams - Long lived response streams can survive client reconnects or user device swtiching
  • Conversation replay/audit - Reconstruct converstation history and agent memory state as it was at any point in time
  • Conversation forking - Fork a conversation at any message to explore alternative paths
  • Access control - User-based ownership and sharing with fine-grained permissions
  • Multi-database support - Works with PostgreSQL and MongoDB; Redis and Infinispan for caching; PGVector and Qdrant for vector search
  • Semantic & Fulltext Search - Search across all conversations using vector and/or Fulltext
  • File Attachments - Durably store files attached to messages sent to your agent, or generated by you agent.
  • Encrypted - All database/file stortage data is encrypted while at rest

Project Status

This is a proof of concept (POC) currently under development.

Architecture

Diagram

Documentation

Visit the Memory Service Documentation for complete guides:

License

Apache 2.0

Contributors

chirinorigazilla

Issues