Engraphy vs Mem0
Checked 24 August 2026 · Engraphy v0.1.0
The short answer
Pick Mem0 if you want an agent remembering things this afternoon. It is Apache-2.0, it has a managed cloud with a free tier, and its SDK is two lines of code. Pick Engraphy if the memory has to be defensible: if you need to know why a fact is in the store, what it replaced, and that no tenant can read another's rows. Engraphy runs only on your own Postgres, checks every write against what it already holds before the row exists, and retires superseded facts instead of deleting them.
The sharpest single difference: Mem0's pipeline asks an LLM to decide ADD, UPDATE, DELETE or NOOP on your stored memories. Engraphy has no model inside the engine and no delete path. The uncertain middle is handed back to the caller rather than guessed at.
At a glance
| Capability | Engraphy | Mem0 |
|---|---|---|
| Deployment | Self-hosted only. Docker Compose brings up Postgres, pgvector, migrations and the server. | Managed cloud (free tier through Pro) or self-host the open-source server. |
| Where your data lives | Your machine or your cloud. Embeddings run in-process, so no API key and no egress. | Mem0's cloud, or your infrastructure, but fact extraction calls an LLM provider either way. |
| Licence | Business Source License 1.1. Run it in production for your own product; converts to Apache-2.0 at the Change Date. | Apache-2.0 for the open-source server; the cloud is commercial. |
| Storage | Postgres 16 + pgvector. One database, typed nodes and edges. | Pluggable vector store, optional graph store, key-value tier. |
| Duplicate handling | On write, before the row exists. Banded into merge / merge-link / pending / new. | On write, by asking an LLM what to do with the extracted fact. |
| When a fact changes | The old version is retired and linked by a supersedes edge. Still walkable. | The LLM may update or delete the earlier memory. |
| Isolation | Postgres row-level security under a NOBYPASSRLS role. The database enforces it. | Application-level scoping by user_id, agent_id, run_id. |
| Schema | Typed nodes and edges with attribute schemas, declared per space in a pack and enforced in Postgres. | Free-form memory strings; no schema to enforce. |
| Retrieval | Vector plus Postgres full-text, fused with reciprocal rank fusion, and traverse walks the edges. | Vector search, with optional graph relationships. |
| How agents connect | MCP over HTTP with a bearer token. Any MCP client. | Python and TypeScript SDKs, REST API, and an MCP server. |
| Maturity | v0.1.0, one maintainer. | Widely adopted, tens of thousands of GitHub stars, a large integration surface. |
Which one to choose
Choose Mem0 when
- You want memory working today and you would rather not run a database.
- You want a permissive licence with no field-of-use restriction: Apache-2.0 versus Engraphy's BSL 1.1.
- You are building on the ecosystem: Mem0 has far more integrations, examples and answered questions than a v0.1.0 engine.
- You want someone else on call. There is no managed Engraphy.
- Your workload is conversational personalisation and you want the lowest-friction path to it.
Choose Engraphy when
- The data cannot leave your infrastructure. Engraphy embeds in-process, so a memory write never becomes an outbound API call.
- You need isolation you can point at in an audit. Row-level security under a non-superuser role is a property of the database, not a
WHEREclause someone can forget. - You need to answer “what did we believe, and when”. Superseded facts are retired and linked, not deleted.
- You want the ambiguous case handed back rather than guessed. Engraphy parks a borderline duplicate as a pending verdict; it does not ask a model to adjudicate.
- Your memory has a shape. Node types, edge types and attribute schemas are declared in a pack and enforced by Postgres.
The write path is where these two really differ
Mem0 extracts facts from a conversation with an LLM, then runs a second LLM pass that
compares each extracted fact against what is already stored and emits one of
ADD, UPDATE, DELETE or NOOP. It is a good
design and it is why Mem0 is easy to adopt: the model absorbs the hard judgment calls.
Engraphy makes the opposite bet. Every write is embedded and banded by similarity against existing memory, and the band decides:
- Clear duplicate → merges into the memory it repeats.
- Related but genuinely new → stored as its own searchable node, joined by an edge. It is not silently absorbed.
- Borderline → parked as a pending duplicate-check verdict for the caller to resolve.
Every write returns a resonance report naming what it touched. No model runs inside the engine, so the same input produces the same banding, and there is no path that deletes a memory you wrote. The cost is that you handle the pending queue. The benefit is that nothing disappears because a model had a bad day.
Isolation: a WHERE clause versus the database
Mem0 scopes memories by user_id, agent_id and run_id.
That works, and it is the normal way to do it, but it is enforced by the code that builds
the query, which means a missing filter in one code path is a cross-tenant read.
Engraphy separates spaces with Postgres row-level security, and the server connects as a role
marked NOBYPASSRLS. An agent cannot read a memory from another space even if the
application layer asks it to, because the database will not return the row. If you are running
memory for more than one customer, that difference is the whole ballgame.
Where the ecosystem gap is real
Mem0 has a managed platform, a free tier, SDKs in two languages, a large body of tutorials and integrations, and years of issues answered in public. Engraphy is v0.1.0, with developer docs and a public repository.
If your constraint is time-to-first-memory, Mem0 wins on that axis and Engraphy does not try to. Engraphy is for the case where the properties of the store matter more than the speed of adopting it.
What the benchmark says
91.4% on LoCoMo, mean of two independent runs, measured under the same conventions as the published Mem0, Mem0-graph and Zep figures, against 66.9% for Mem0 and 68.4% for Mem0-graph, with the adversarial category excluded on every side. Ahead of Mem0, Mem0-graph and Zep on every LoCoMo category under the published evaluation conventions, across two independent runs. Mean of two independent runs on the seven LoCoMo conversations held out from tuning, graded under the conventions vendored from mem0ai/memory-benchmarks at 4b61c5d.
By question type, under matched conventions, against Mem0, Mem0-graph and Zep.
| Question type | Engraphy | Mem0 | Mem0-graph | Zep |
|---|---|---|---|---|
| Excluding adversarial | 91.4% | 66.9% | 68.4% | 75.1% |
| Single-hop | 93.3% | 72.9% | 75.7% | 76.6% |
| Multi-hop | 91.8% | 67.1% | 65.7% | 61.7% |
| Temporal reasoning | 92.2% | 55.5% | 58.1% | 49.3% |
| Open-domain (n=140) | 69.3% | 51.2% | 47.2% | 41.4% |
Engraphy measured under the published conventions, mean of two runs over seven conversations; comparators as published by Mem0 (arXiv:2504.19413, Table 2), with the Zep overall taken from Zep's own higher self-reported figure of 75.14%. Category columns realigned, see the report. Open-domain is 140 questions pooled across both runs: like-for-like 69.3%, n=140, 95% interval 61 to 76.
Engraphy: runs locomo-settle-a (3 October 2026) and locomo-settle-b (9 October 2026), two independent runs of the same configuration, each re-ingesting from scratch, engine aa7daa2. 1,486 questions per run over the seven LoCoMo conversations held out from all tuning (conv-41, conv-42, conv-43, conv-44, conv-47, conv-48 and conv-50), 1,151 of them non-adversarial. Reader Claude Opus 4.8, judge Claude Sonnet 5. Competitor figures from Chhikara et al., Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory, arXiv:2504.19413, Table 2; the Zep overall of 75.14% from Zep's own published rerun. Full method in the consolidated report, raw artifacts in results/locomo/locomo-settle-a and results/locomo/locomo-settle-b.
75.4% under Engraphy's own stricter convention, mean of two runs, range 74.8 to 76.0: 1,736 of 2,302, 95% interval 74 to 77. Engraphy's strict convention is harder than the one the published figures use, so this is the conservative figure, not a like-for-like one. Level with Zep's self-reported figure under our stricter convention, ahead of the published Mem0 and Mem0-graph figures. See both conventions.
Methodology, conventions and caveats
Two conventions, both reported
Matched convention reproduces the conventions the published Mem0, Mem0-graph and Zep figures were produced under, vendored verbatim from mem0ai/memory-benchmarks at 4b61c5d: the reader must commit to an answer rather than decline, the judge accepts one item of a multi-item gold answer with 14-day date and 50% duration tolerance, adversarial questions are excluded, and each answer is graded once. This is the like-for-like comparison, and the source of 91.4% (2,104 of 2,302 across both runs).
Strict convention is Engraphy's own default and the harder of the two: the reader may say it does not know, the judge requires every item of the gold answer, each answer is graded best of three, and adversarial questions are included and scored. This is the source of 75.4% (1,736 of 2,302 across both runs).
Engraphy's strict convention, by question type
| Question type | Engraphy | Mem0 | Mem0-graph | Zep |
|---|---|---|---|---|
| Excluding adversarial | 75.4% | 66.9% | 68.4% | 75.1% |
| Single-hop | 83.3% | 72.9% | 75.7% | 76.6% |
| Multi-hop | 55.9% | 67.1% | 65.7% | 61.7% |
| Temporal reasoning | 76.7% | 55.5% | 58.1% | 49.3% |
| Open-domain (n=140) | 54.3% | 51.2% | 47.2% | 41.4% |
| Adversarial, declines correctly | 90.3% | not reported | not reported | not reported |
These put Engraphy's harder convention against figures produced under the permissive one, so they understate Engraphy relative to the like-for-like table. Under this convention multi-hop is behind all three. Ahead on single-hop, temporal reasoning and open-domain even under Engraphy's own stricter convention, where the system is allowed to say it does not know.
Why multi-hop differs between the two
Multi-hop gold answers usually list several items. The matched judge accepts one item and the strict judge requires every item, so the same stored memories and the same retrieved context score a mean of 91.8% under one rule and 55.9% under the other. The gap is a property of the grading rule, not of retrieval.
The category alignment
The Mem0 paper's per-category column headers (arXiv:2504.19413, Table 2) do not name the LoCoMo categories they hold. Of the 24 possible assignments of its four columns to LoCoMo's four non-adversarial categories, exactly one reproduces the paper's own published overall for all five systems it reports, to within 0.01: the paper's "Single-Hop" column holds LoCoMo's multi-hop category, "Multi-Hop" holds open-domain, "Open-Domain" holds single-hop, and "Temporal" holds temporal. Every per-category comparison on this page uses that assignment, applied by code in the benchmark repository rather than by hand.
Confidence intervals
95% intervals across both runs: matched, excluding adversarial, 90 to 92; strict, excluding adversarial, 74 to 77. Open-domain is 140 questions pooled across both runs, so it carries the widest interval: matched 69.3%, interval 61 to 76. Under the published conventions every margin is 16 points or more, and each run's own figure, not only the mean, sits above every competitor figure including Zep's self-reported one with its stated error. The intervals cover sampling error; the range across the two runs covers run-to-run variation. Run-to-run spread is under 1.3 points on both conventions, across two runs that each re-ingested the corpus from scratch.
How the setup differs from the published figures
Sample: 7 of LoCoMo's 10 conversations, the ones held out from tuning. The published figures cover all 10.
Runs: two independent runs, each re-ingesting the corpus from scratch. Mem0's published figure is the mean of 10.
Models: Claude Opus 4.8 reader, Claude Sonnet 5 judge. The published figures use a GPT-4o-mini reader. A reader model is part of any memory system's measured result, and neither side's figure isolates retrieval from reading.
Context budget: Engraphy competes with at most 25 memories in context, where the matched convention permits 200.
The like-for-like figure is raw: the confabulation controls that bounded the earlier three-conversation figure have not been rerun for these runs.
The Zep figure
Mem0 published 65.99% for Zep; Zep self-reports 75.14%. The higher figure is used throughout.
Mem0's 92.5%
Mem0's research page (mem0.ai/research) reports 92.5%. It states no retrieval budget, answerer or judge model, judge prompt or run count, so it is not used as a comparator.
Reproducing every figure
Verify it yourself: the public benchmark repository holds the per-question results for both runs, and every number recomputes from them with python scripts/consolidate.py results/locomo/locomo-settle-a results/locomo/locomo-settle-b. The consolidated report carries the full method and the derivation of the category alignment, and each run's PROVENANCE.md (settle-a, settle-b) records the engine commit, dataset hash, models and prompt hashes.
What Engraphy does not do
Stated plainly, so that nothing here has to be walked back:
- A near-verbatim restatement can lose its text. If an incoming body
overlaps the stored one at a Jaccard of 0.8 or above it is not added as an addendum,
and the write returns
addendum_added: false. Nothing is deleted, and not everything written is kept as new text. - Contradictions merge. A negation sits close in meaning to the fact it
overturns, so it scores above the merge threshold and is absorbed, measured at 28
of 36 pairs in our own contradiction set. The merge result names what it merged into, so
the caller can repair it with
supersede. The engine will not guess, because agreement is a judgment call and no model runs inside the engine. - Time travel goes as far as supersession, not further. Facts are retired and linked rather than overwritten, so history is walkable. Full bi-temporal querying, asking what the store believed at an arbitrary past instant, is not built.
- Ranking is reciprocal rank fusion today. The cross-encoder slot is specified and stays disabled until there is evidence it earns its cost.
- It is v0.1.0, and it is self-hosted only. There is no managed Engraphy to sign up for. You run Postgres, or nothing runs.
Questions people ask
Is Engraphy a drop-in replacement for Mem0?
No. Mem0 stores free-form memory strings and Engraphy stores typed nodes and edges declared in a pack, so the data model is different and a migration is a rewrite of how you write memories, not a change of endpoint. Engraphy also speaks MCP rather than a Mem0-shaped SDK.
Is Mem0 or Engraphy better for a multi-tenant product?
Engraphy, if isolation is the deciding factor. It separates every space with Postgres row-level security under a NOBYPASSRLS role, so the database refuses a cross-tenant read rather than relying on the application to filter. Mem0 scopes by user_id and agent_id at the application layer.
Does Engraphy need an OpenAI API key like Mem0 does?
No. Engraphy runs its embedding model in-process, so a memory write never becomes an outbound API call and no data leaves the machine. Mem0 calls an LLM provider for fact extraction whether you use the cloud or self-host the open-source server.
Can Mem0 delete a memory? Can Engraphy?
Mem0's update pipeline can emit a DELETE for a stored memory. Engraphy has no delete path in the write flow: a fact that stops being true is retired and linked by a supersedes edge, so you can still walk back to it.
Which one scores higher on LoCoMo?
Ahead of Mem0, Mem0-graph and Zep on every LoCoMo category under the published evaluation conventions, across two independent runs. 91.4% on LoCoMo, mean of two independent runs, measured under the same conventions as the published Mem0, Mem0-graph and Zep figures, against 66.9% for Mem0 and 68.4% for Mem0-graph. Measured on the seven LoCoMo conversations held out from all tuning. Mem0's research page reports 92.5% without stating its retrieval budget, models, judge prompt or run count, so it is not used as a comparator.
Is Engraphy open source?
It is source-available under the Business Source License 1.1: read it, run it, build on it, and use it in production for your own product. Offering Engraphy itself as a hosted service to third parties is reserved until the Change Date, when it converts to Apache-2.0. Mem0's server is Apache-2.0 today.
Sources
- Mem0 platform versus open source: Deployment options and the split between the OSS server and the managed platform.
- Mem0 on GitHub: Apache-2.0 licence, memory pipeline.
- Chhikara et al., arXiv:2504.19413: Source of every competitor LoCoMo figure quoted on this page except Zep's self-reported overall, Table 2.
- Zep, Lies, damn lies and statistics: is Mem0 really SOTA in agent memory?: Source of Zep's self-reported LoCoMo overall of 75.14%.
- Engraphy LoCoMo two-run consolidated report: Method, conventions, category alignment and raw artifacts for every Engraphy figure on this page.
Try it against your own memory
Engraphy is a server you host. Point any MCP client at it. Embeddings run in-process, so there is no API key and no data leaves the box.