This is an early release preview. You may encounter bugs.
MemoryBear logo
Unclaimed

Tool memory

MemoryBear

MemoryBear Equip AI with human-like memory capability

A+ 91/100 GitHub score ? This grade is derived from GitHub signals, not user votes. Open for the full breakdown.
Discussion

01 / Summary

About MemoryBear.

MemoryBear is a memory system for AI agents from RedBear AI that treats knowledge as something that changes over time rather than static data to retrieve. Modeled on how the brain encodes, consolidates, and prunes memories, it runs knowledge through a lifecycle of perception, extraction, association, and forgetting. It targets three problems: context lost to model window limits and recency bias, isolated memories across collaborating agents, and semantic drift from jargon, colloquial language, and multilingual input.

An extraction engine parses conversations and documents into core statements, entity-relation triples, timestamps, and summaries. Triples sync to a Neo4j knowledge graph with 12 core relationship types, and hybrid search pairs Elasticsearch keyword matching with BERT embedding search. A forgetting engine gives each item a memory strength that rises with use and decays over time, moving weak items through dormancy, decay, and clearance, and a daily self-reflection job checks for conflicting records, reweights associations, and flags suspicious entries for human review.

It runs as a self-hosted FastAPI service with a management API and a service API for extraction, graph operations, search, and forgetting control, backed by PostgreSQL, Redis, and Celery worker queues, plus a web frontend. Model access goes through LangChain with OpenAI, DashScope, or AWS Bedrock, and MCP support comes through fastmcp. Published benchmarks compare it with Mem0, Zep, and LangMem on F1, BLEU-1, and LLM-as-a-judge scores, reporting 72.90% overall accuracy for the vector version and 75.00% for the graph version.

  • Memory extraction: declarative statements, entity-relation triples, timestamps, and summaries of configurable length from conversations and documents
  • Knowledge graph: extracted triples sync to Neo4j across 12 relationship types, with interactive graph visualization and human editing
  • Hybrid search: Elasticsearch keyword retrieval combined with BERT embedding search
  • Forgetting engine: memory strength driven by usage and time decay, with a dormancy, decay, and clearance lifecycle
  • Self-reflection: a scheduled job checks consistency, reweights associations, and flags conflicts for human review
  • Service API: endpoints for extraction, graph operations, search, and forgetting control, with a separate management API
  • Async workers: Celery queues for memory writes, document parsing, reflection, GraphRAG construction, and scheduled workflows
  • Model integration: LangChain with OpenAI, DashScope, and AWS Bedrock, plus MCP through fastmcp

02 / Discussion CREDIBILITY-GATED

Discussion

Reading is open to everyone. Posting and voting need a verified identity or a GitHub grade of B or higher.

  • No discussions yet.

04 / Build

Build with MemoryBear.

Browse the catalog for frameworks, tools, and harnesses, each scored on real GitHub credibility.

Get MemoryBear →

Browse the catalog