RepositoryPython
SU

SuanmoSuanyangTechnology/MemoryBear

MemoryBear Equip AI with human-like memory capability

10.6kstars
938forks
4issues
0views

🧠 MemoryBear: Give AI the Gift of Human-Like Memory

From passive lookup to proactive cognitive assistance — MemoryBear transforms how AI remembers.

MemoryBear is a next-generation AI memory system developed by RedBear AI. Inspired by biological brain mechanisms, it builds an intelligent knowledge-processing framework spanning perception, extraction, association, and forgetting. Unlike traditional memory tools that treat knowledge as static data, MemoryBear emulates hippocampus encoding, neocortex consolidation, and synaptic pruning — enabling knowledge to dynamically evolve. This shifts AI-user interaction from passive lookup to proactive cognitive assistance.

✨ Highlights

  • Memory Extraction Engine: Semantic-level parsing of unstructured conversations and documents to extract core declarative information, structured triples, temporal anchors, and intelligent summaries (50–500 words, 10-page documents in under 3 seconds)
  • Graph Storage with Neo4j: Graph-first architecture supporting millions of entities and tens of millions of edges across 12 core relationship types including hierarchical, causal, temporal, and logical
  • Hybrid Search: Keyword retrieval via Elasticsearch combined with semantic vector search via BERT embeddings, achieving 92% accuracy and 35% improvement over single-mode retrieval
  • Memory Forgetting Engine: Brain-inspired synaptic pruning mechanism using dual-dimension model of memory strength and time decay to keep memories relevant
  • Full Lifecycle Management: Complete framework from perception through extraction, association, and forgetting
  • FastAPI + Python 3.12+: Modern, high-performance API framework with native Neo4j integration, Apache 2.0 licensed

💡 Why it matters

Traditional LLMs suffer from context window limits (8k–32k tokens), static knowledge gaps, and recency bias — early conversation history gets lost. Multi-agent systems face data silos, inconsistent dialogue states, and decision conflicts when agents lack shared memory. MemoryBear addresses these by emulating biological memory processes: it extracts meaningful knowledge from conversations, stores relationships in a graph, retrieves relevant memories through hybrid search, and prunes outdated information over time.

This approach fits best for conversational AI, customer support, multi-agent collaboration, and any application where AI needs to maintain context across long interactions. The open-source Apache 2.0 license and FastAPI foundation make it easy to integrate into existing Python ecosystems.


#AI #MemorySystem #Neo4j #OpenSource #TiniX