Skip to content

Latest commit

 

History

History
296 lines (266 loc) · 31.7 KB

open-source-memory-comparison.md

File metadata and controls

296 lines (266 loc) · 31.7 KB

Open-source memory systems: scope, configuration and evidence

The original official-source review was checked on 2026-11-16 (Asia/Shanghai); the pinned Haystack/BM25S and LanceDB/Whoosh component extensions were executed and checked on 2026-11-18. A further pinned official-source review of Hindsight, MemSearch and MCP Memory Service was checked on 2026-11-18, without executing those systems. This comparison covers 26 external project families, including six retrieval/store libraries or frameworks. It separates the executed supplied-page experiment from documentation about complete products. A component score is not a score for its parent product's default end-to-end workflow.

What the shared experiment measures

The registered protocol uses the existing 80-question engineering workload without changing questions, evidence labels or scoring. Every backend receives the same visible original page bodies and a project boundary, with at most five native candidates. The same whole-block packer applies 1200- and 2400-character budgets, including citations. Book's native excerpt results are a separate track.

The measured modes are Book, billion-context's actual search kernel, claude-mem's supplied-observation SQLite/FTS component, Basic Memory's explicit text component, Chroma's local vector collection, an explicitly indexed LangGraph store, and Mem0's infer=False raw-memory path. The dependency lock, source/model hashes, full native responses, failed attempts and effective configuration accompany the results. No missing backend receives an invented zero score.

Chroma, LangGraph and Mem0 use the same real local MiniLM embedding model. Their results are correlated evidence of that model and their configured retrieval interfaces, not three independent model evaluations. Mem0's tested path omits its normal fact-extraction LLM. Basic Memory's text path omits its semantic/hybrid stage. claude-mem receives original pages as observations, without running its observer. These choices are fixed before scoring.

The v0.11 extension also executes actual Haystack 3.5.0 BM25, BM25S 0.3.16 and Memvid SDK 2.0.160 lexical APIs. Dataset and all six supplied-page checkpoint digests match the retained experiment. Haystack/BM25S add scored rows; Memvid's native all-empty natural-language responses are disclosed as a configured-query limitation, with positive keyword controls in a separate post-run diagnostic. The subsequent LanceDB 0.41.0 native FTS and Whoosh 2.7.4 BM25F/OR extension adds two actual executions, with identical original questions and all six source-page bundles. There are 11 executed external configurations, 10 scored configurations and the separately disclosed Memvid query limitation. v0.11 extension · LanceDB/Whoosh protocol, full results and lossless recovery.

Project families and engineering roles

The links below identify official sources and fixed package references used for the feature review. Tested package versions and source locks are specified separately in the protocol; a current main-branch README does not establish the identity of an older or newer installed release.

The five additions in the earlier v0.7 expansion were OpenViking, Serena, EverOS, SimpleMem and Supermemory. Their pinned document/blob identities and the claims checked are recorded in the upstream review manifest. They have not been run on this workload and receive no numerical result.

The three documentation additions in this v0.12 review are Hindsight, MemSearch and MCP Memory Service. Their exact README commits, blob identities, supported claims and unmeasured boundaries are retained in the v0.12 source-review manifest. They also have not been run on this workload. Adding their feature coverage changes the family count from 23 to 26; it leaves the 11 executed external configurations, 10 scored configurations and separate Memvid diagnostic unchanged.

Project family Memory representation and retrieval Local/model requirements Source and scope relevant to engineering
billion-context Proxy/client context management, reversible compression and searchable blocks Full workflow can involve model-directed compression; the pinned search kernel runs locally Stored block references and project filtering; the experiment covers the kernel, not proxy routing or decompression
Mem0 / its OpenMemory tools Application memory, model-extracted facts and an explicit raw-memory ingestion mode Configurable LLM, embeddings and vector stores; local providers are possible User/agent/run and metadata filters; IDs and memory history; exact original-conversation offsets were not verified
Letta / Letta Code Stateful agents, editable memory blocks and Git-backed MemFS Local or cloud backend; the agent uses an LLM; MemFS need not have a vector index Git history, transcripts and message/file search; per-agent and shared memory
Graphiti Episodes, entities, temporal relationships and graph retrieval Graph backend plus extraction/embedding models, with configurable providers Raw episodes, source descriptions and valid times are retained; group_id scopes graph data
MemOS MemCubes and service/local memory paths, including text, tools and policies REST quickstart uses graph/vector services; the local plugin offers SQLite/FTS5 and local embeddings Cube ownership and scope; local bundle import preserves relevant ownership/profile information
Memori Captured conversation/trace records enriched into facts, attributes and relationships Cloud or bring-your-own database; enrichment includes model processing Entity/process/session attribution and stored conversation messages; database ownership alone does not establish a fully offline pipeline
Cognee Documents, sessions and code transformed into chunks, graphs and vectors A local GLiNER/embedding path works without an LLM API key; some other capabilities need models or separately licensed extensions Dataset boundaries and document/chunk provenance; COGX supports memory migration and export
claude-mem Activity hooks, model-produced observations/summaries and progressive retrieval Local Node/Bun worker and SQLite/FTS5; optional Chroma; observer model/provider Observation/session/project/date/type identifiers and detailed reads; JSON import/export is documented
memvid Immutable content frames and indexes in a portable .mv2 file Local lexical BM25 and optional ONNX vector search; API embeddings are optional Frame contents, timestamps, checksums, URIs and tags; project tags were not independently verified as an access-control boundary
Official MCP memory server Explicit entities, observation strings and relations in a JSONL graph Node/stdio or container; the server itself does not require an embedding model open_nodes and read_graph retrieve stored strings; separate files/instances can separate projects; search_nodes is literal substring lookup
LangGraph store Application-defined namespace/key/JSON values, separate from thread checkpoints In-memory and persistent implementations; semantic search requires an explicit embedding index Tuple namespaces, keys and timestamps; an application can preserve its own source references in values
LongMemory, formerly Cavira OpenMemory Project memory, immutable provenance and temporal facts TypeScript engine with memory/SQLite backends; configurable real embedding providers and a documented synthetic fallback Rich scope/provenance and strict/historical modes are documented; their correctness was not independently measured here
Basic Memory Markdown notes, observations and links, indexed for text/semantic retrieval Local SQLite or server storage; the tested 1.0.0 release enables a semantic path by default Original notes, permalinks, matched chunks and project scope; explicit FTS component results do not represent its default full pipeline
Chroma Documents, IDs, metadata and vectors Local client/persistence or server; default text embedding downloads a local MiniLM model ID-based document reads, metadata filtering and collection/tenant/database boundaries; it does not supply an application-specific conversation policy
Haystack BM25 Framework retriever over original document bodies, with native BM25L defaults in the tested in-memory component The tested lexical component runs locally without model calls; other framework pipelines can use models/services Native project-metadata filter in this adapter; document IDs/content are mapped to supplied original pages, not a complete conversation-memory policy
BM25S Sparse BM25 retrieval library; tested Lucene BM25 defaults and native tokenization without a stemmer Local NumPy/SciPy lexical retrieval; no embedding or generation model in this test One actual native index per project selected before retrieval; original page identity lives in the corpus payload; lifecycle and authorization remain application responsibilities
LanceDB native FTS Embedded database with native full-text retrieval; the tested 0.41.0 index uses its FTS defaults and OR matching Local lexical search without an embedding or generation model in this test Exact native project predicate before top-five selection; full stored bodies, IDs, titles and times verified against supplied pages; this is not a conversation-memory policy or an authentication test
Whoosh BM25F Text-search library; tested 2.7.4 default StandardAnalyzer and BM25F, with an explicitly configured OR QueryParser Local Python index/search; no model in this test Native exact project Term filter before top-five selection; complete stored source fields verified; application code supplies memory ingestion, provenance addresses and lifecycle
OpenViking viking:// context filesystem; directory abstracts/overviews (L0/L1), original content (L2), and vector retrieval constrained by target directories Self-hosted service with configurable model providers, including local Ollama; summaries, embeddings and optional intent analysis have their own model requirements Resource subtrees, account/user namespaces and optional resource ACLs; current retrieval performs scoped global vector search rather than recursively walking the directory tree
Serena Coding toolkit with human-editable Markdown memories, topic directories and explicit mem: references; memory names precede detailed reads Project memory files need no vector database; an attached coding agent performs the reading/writing and may use an LLM .serena/memories/ per project plus deliberately shared global memories; rename/reference checking and Git versioning are documented
EverOS, formerly EverMemOS Canonical Markdown conversations/files/agent traces with SQLite and LanceDB indexes; separate user and agent memory surfaces Local runtime; the normal ingestion quickstart requires an extraction model; vector, reranking and multimodal paths add configured providers On-disk app_id/project_id partitioning and user/agent/session search fields; source files can be inspected and versioned; the no-key educational demo is not the live ingestion pipeline
SimpleMem Model-extracted atomic facts with semantic, keyword and metadata retrieval; separate research/Python and MCP paths Python/Docker self-hosting is documented; the text MCP path uses LLM/embedding services and LanceDB MCP documents per-user tables and token authentication; this alone does not demonstrate separate projects for one user; Python multimodal/evolution features are not all exposed by MCP
Supermemory Extracted memories, profiles, document ingestion and hybrid retrieval, with coding-agent plugins Hosted API or local runtime; offline text use is documented with Ollama and local embeddings after the initial model download; URL ingestion uses a hosted reader Project/container tags scope memory and profile queries; documentation of these selectors is not a measured cross-project isolation result
Hindsight Model-extracted facts, entities and temporal relationships; semantic, BM25, graph and temporal recall with fusion/reranking; wiki-style pages Extraction uses an LLM; retrieval uses configured embeddings/reranking; self-hosting supports local model providers Bank IDs, a documented bank per coding repository and bank-specific MCP endpoints; observations retain supporting quotes and pages can be organized in folders; source-coordinate fidelity and isolation were not tested here
MemSearch Authoritative Markdown with a rebuildable Milvus index; dense/BM25 fusion and progressive search, section expansion and original-transcript reading Local ONNX and Ollama embeddings are supported; the documented Python API defaults to OpenAI; background project/user-note maintenance is optional and disabled by default source_prefix search scope, configurable collections, full Markdown sections and raw dialogue access; these mechanisms were not evaluated here as exact-project or authenticated isolation guarantees
MCP Memory Service Persistent memory through MCP/HTTP; semantic plus BM25 search, consolidation and heuristic supersession of conflicting records SQLite with local ONNX via the sqlite extra; without that extra the README documents hash-embedding fallback; optional search summaries need a configured LLM Tag/time/store filters and agent tagging are documented; bootstrap profiles are explicitly not project-isolated, a limitation of that feature rather than a result about every scoped search path; source coordinates and isolation were not tested here

Local operation, source lookup and support for multiple clients occur in several projects. Book's engineering value is its combination of normalized original conversations, explicit source coordinates, project/task navigation, bounded context, identifier-aware lexical lookup and archive maintenance, with no default extraction or embedding model. A team needing graph reasoning, editable agent state, authored Markdown knowledge or a vector-store API may prefer a different architecture.

Directory-oriented navigation and progressive reading are also documented by OpenViking, Serena, claude-mem and MemSearch. Hindsight documents folder-organized pages and repository-specific banks; MemSearch explicitly includes original-transcript reading. Markdown and project scope are also available in Basic Memory and EverOS. These are relevant alternatives, not absent capabilities. Book's intended fit is an engineer returning to the original evidence for a specific project/task with a bounded context budget. The table does not prove that its isolation, completeness or speed exceeds every listed product.

LangMem is reviewed as a companion SDK in the LangGraph ecosystem, not counted as another independently tested backend or project family. It adds model-driven extraction and management tools over namespaced storage; the LangGraph InMemoryStore experiment above does not execute that policy.

Reading the project-scope column

A project directory, namespace, graph group, metadata filter and authenticated tenant boundary are different mechanisms. Their names alone do not establish equivalent isolation. In a comparison for several similar repositories, each adapter must pass the intended project scope on both writes and reads, and the same workload must include conflicting facts in other projects. An isolated successful lookup does not measure behavior when scope is missing, invalid or ambiguous. The documentation-only families listed below have not undergone those runtime checks here; their listed mechanisms are official-source descriptions only.

What has and has not been tested

Family Executed experiment scope Outside this experiment
billion-context Pinned supplied-page search kernel Proxy operation, model-directed compression and follow-up decompression
claude-mem Pinned native SQLite observation search over supplied pages Observer extraction, generated summaries, Chroma and complete capture workflow
Basic Memory Pinned native text search and official query/fallback handling Default semantic/hybrid pipeline and note-authoring workflow
Mem0 Pinned raw-memory infer=False, real local embedding and native search Fact extraction, graph memory, reranking and managed-platform features
Chroma Pinned local vector collection and project metadata filter A complete memory application or all products built on Chroma
LangGraph Pinned indexed InMemoryStore with the same real embedding model Durable-store behavior, checkpoint recovery and an agent's extraction policy
Haystack BM25 Actual pinned in-memory retriever with native project equality filters Full RAG/agent pipelines, other stores, models and production service behavior
BM25S Actual pinned BM25 library; separate project indexes and unchanged queries A memory product, multi-user authentication, native conversation ingestion or source-citation policy
LanceDB native FTS Actual 0.41.0 local native FTS; unchanged queries, exact project prefilter and full stored-field verification Vector/hybrid modes, native update/delete behavior, managed service or complete memory products built on LanceDB
Whoosh BM25F / OR Actual 2.7.4 BM25F over default TEXT analysis; explicitly configured OR parser and native exact project filter Default AND parser, alternative analyzers/scoring, application memory policy, authorization and native update/delete lifecycle
Memvid lexical Actual pinned SDK with native URI-prefix scope; all formal natural-language queries returned empty hits; keyword controls retrieved source pages Default/other search modes, query rewriting, semantic retrieval, byte-exact native source reading and end-to-end product quality
Letta / Graphiti / MemOS / Memori / Cognee / LongMemory Official-source feature review only Numerical quality, speed, resource use and production correctness in this workload
OpenViking / Serena / EverOS / SimpleMem / Supermemory Pinned official-source feature review only All retrieval, completeness, cross-project isolation, latency and resource results in this workload
Hindsight / MemSearch / MCP Memory Service Pinned official README review only; each returned blob identity was rechecked All same-workload retrieval scores, source-coordinate fidelity, missing/ambiguous project behavior, cross-project isolation, latency, resources and end-to-end coding results
LangMem companion SDK Pinned README/API-example review only; grouped with the LangGraph ecosystem Model-driven memory extraction, management and end-to-end agent behavior
Official MCP memory Official API/source review Generic ranked natural-language retrieval; an empty literal-string search is not a semantic-search failure score

All seven originally registered backends completed the retained matrix. The independent audit recomputes every score and packed context and verifies all 320 complete-response pairs with the unchanged two-component harness. In the retained v0.11 Book comparison, at 2400 characters Book has 72/72 complete-evidence cases; billion, claude-mem FTS and Basic Memory FTS each have 64/72; the shared-MiniLM configurations each have 47/72. That v0.11 Book snapshot has 68/72 at 1200 and retains four stale-only training-decision failures that each of those tested lexical competitors avoids. All seven return related context for all eight missing-evidence cases in both budgets.

The new three-component attempt has 720 saved upstream outputs independently validated and 480 packed responses whose contexts and scores were independently recomputed; the audit does not rerun upstream ranking. At both budgets BM25S has 72/72 complete cases, 80/80 required spans and 48/48 fixed-policy checks; Haystack has 66/72, 74/80 and 42/48. Both have zero stale-only cases and return context for all eight missing-evidence queries. BM25S ties the v0.11 Book snapshot at 2,400 characters and leads its common-block result at 1,200. Those observations contradict a universal superiority claim. Memvid's all-empty native outputs are retained separately; its keyword controls establish an operational index in the tested fixture, not answer accuracy or abstention. Original records, archive recovery and diagnosis.

The frozen LanceDB/Whoosh extension completed 480 actual native searches and 320 packed responses, with no source-validation failure, budget violation or repeated-output change. Its offline audit reconstructs every original query, native mapping, packed response, score and summary; restoring all archived inputs produces the same audit proof. Both components return related context for all eight missing-evidence questions.

Actual configured component Characters Required spans Complete cases Fixed-policy checks Stale-only Mean context characters
LanceDB 0.41.0 native FTS 1,200 72/80 64/72 40/48 4 1,035.8
LanceDB 0.41.0 native FTS 2,400 72/80 64/72 40/48 4 1,876.7
Whoosh 2.7.4 BM25F, explicit OR parser 1,200 80/80 72/72 48/48 0 884.5
Whoosh 2.7.4 BM25F, explicit OR parser 2,400 80/80 72/72 48/48 0 1,457.8

Whoosh joins BM25S as a 2,400-character complete-evidence/policy tie against the v0.11 Book snapshot and leads that snapshot at 1,200. Whoosh also uses fewer mean packed characters at 2,400. Those results are retained, including when describing Book's engineering advantages. LanceDB completes 4/8 bilingual and 4/8 historical-decision cases; its other answerable categories are 8/8. Whoosh completes every answerable category. These are configured retrieval components, not eleven independently ranked complete memory products. The current results identify the separately replayed Book source; external scores are never silently reassigned to a new Book version.

External indexes are rebuilt from the visible page snapshot at each checkpoint; this does not validate their native update/delete lifecycle. Source-validation checks authenticate the adapters' mappings to common original pages, not identical native citation features across all products. The first Chroma configuration-JSON integration failure occurred before quality scoring and is retained separately. Unmeasured projects are not ranked below Book. Published scores from different datasets, prompts, budgets or managed services are not copied into these tables.

Identity, naming and license notes

  • Mem0's old OpenMemory MCP/dashboard is archived. Its current OpenMemory repository concerns coding-agent session portability. Those tools count as one project family here. Cavira's LongMemory is a different project.
  • Letta, MemGPT and Letta Code are not counted as three competing systems. Graphiti refers to the open-source graph library, not the entire hosted Zep service. Chroma and LangGraph are identified as building blocks throughout.
  • EverMemOS's official repository now resolves to EverOS. This review uses the current EverOS Markdown/SQLite/LanceDB design, not its historical server architecture or scores. SimpleMem's Python research paths and text MCP server are also distinguished rather than assigned each other's capabilities.
  • The fixed Basic Memory release declares AGPL-3.0-or-later. LangGraph is MIT. In the new snapshots, OpenViking supplies AGPLv3; Serena's licensing overview assigns GPL-3.0-or-later to its application and MIT to SolidLSP. SimpleMem, Supermemory and LangMem supply MIT; EverOS supplies Apache-2.0. These repository observations do not extend a license to separately hosted services or excluded components.
  • MCP's repository license describes a MIT-to-Apache-2.0 code transition and separately licensed documentation; its memory README retains an MIT label. Memori's LICENSE and README declare Apache-2.0, while its GitHub license metadata returned NOASSERTION. These observations are retained rather than reduced to a blanket license claim. The pinned billion-context binding records its additional attribution wording; Letta branding and some Cognee extensions have separate terms.

Official supporting interfaces