Knowledge graph vs vector memory for agents

Vectors find what sounds alike, graphs follow how things connect, files stay readable. What each storage shape for agent memory is good and bad at.

On this page

A vector store finds memories that mean something close to the question, even in other words, but it has no idea how two memories relate or which one is newer. A knowledge graph stores entities and the links between them, so it can answer questions that hop across several facts and track when a fact stopped being true, at the cost of a database and a model call to build it. Plain files are the third shape: slower to search without an index, but you can read, edit and version them. Most real systems mix two or three, and the published benchmarks don’t settle which mix is best.

Claims about other products here are from their own docs and papers, as of November 2026, linked where they’re made. Memorinth has not run LoCoMo or LongMemEval, so this post has no benchmark of its own.

Vectors Knowledge graph Files
Stores Text chunks and their embeddings Entities, relationships, often time Notes as text, usually Markdown
Finds What’s similar in meaning What’s connected, across hops What you grep for, or what an index finds
Good at Paraphrase, fuzzy recall, scale Multi-hop questions, who-did-what, facts that change Reading, editing, diffs, git, any tool
Bad at Relationships, order, what’s current Setup, ingestion cost, extraction errors Fuzzy recall on its own, very large volumes
Needs An embedding model, a vector store A graph database, an LLM to extract A folder
You can read it Not really Through a query or a viewer Yes, in any editor

What vector memory is good and bad at

Vector memory turns each piece of text into a list of numbers that places it by meaning, then returns the pieces nearest to the question. A note about “plans and tiers” can answer a search for “pricing”. That’s the whole appeal: no schema, no extraction step, and it works on any text you throw at it.

The weakness is everything that isn’t similarity. A vector store doesn’t know that one memory replaced another, that two memories are about the same person, or that something happened before something else. Ask “what did we decide after the outage?” and it returns whatever sounds most like outages and decisions. Old and new answers come back side by side, and the agent has to sort them out.

Mem0’s open-source library is a typical vector setup: by its docs, it defaults to OpenAI for the LLM and embeddings, a local Qdrant vector store and a SQLite history.

What a knowledge graph is good and bad at

A knowledge graph stores things (people, services, files) as nodes and how they relate as edges. That lets an agent answer questions that need two or three facts joined: which service owns the table that broke last week. Some graphs also store time. Zep’s open-source engine, Graphiti, gives every fact a validity window and marks old facts invalid rather than deleting them, so you can ask what was true then and what’s true now. It searches by meaning, by keyword and by walking the graph together.

The costs are real. Graphiti runs on Neo4j, FalkorDB or Amazon Neptune, and uses an LLM, OpenAI by default, to pull entities and facts out of text. Its README warns that models without structured output can produce wrong schemas and failed ingestion, and that ingestion is throttled to avoid rate limits. Every memory written is at least one model call, and an extraction mistake becomes a wrong edge the agent trusts.

Graphs also come in degrees. Mem0’s current graph memory needs no separate graph database: it links memories that share an entity and uses that to boost search. Its docs say plainly that it doesn’t assign typed, labelled relationships. That’s closer to “vectors with entity links” than to a full knowledge graph, and it’s a sensible middle ground.

What plain files are good and bad at

Files are the shape people forget to compare. A memory saved as a Markdown note is something you can open, correct, delete, diff and put in git. Any agent can read it with the tools it already has, and nothing about it depends on one vendor’s database still existing. We make the longer case in Agent memory should be Markdown you own.

On their own, files are weak at recall. grep finds exact words, not meaning, and an agent that reads whole files to find one line burns context. They also don’t write themselves: someone, you or the agent, has to decide what’s worth a note. For millions of memories from thousands of users, a folder is the wrong tool.

Letta tested the “files are enough” idea. In its own run on LoCoMo, a Letta agent given the conversation as a file and only file tools (grep, search, open) scored 74.0% with GPT-4o mini, which it compared with the 68.5% Mem0 reported for its graph variant. That’s Letta’s result about Letta’s agent, but it makes the point that the storage shape matters less than how well the agent searches it.

What LoCoMo and LongMemEval measure

Both are question-answering tests over long chat histories.

  • LoCoMo (Maharana and others, 2024) has generated conversations of about 300 turns and 9K tokens on average, over up to 35 sessions. An agent reads the history, then answers questions about it.
  • LongMemEval (Wu and others, ICLR 2025) has 500 questions embedded in long user-assistant histories and tests five abilities: information extraction, multi-session reasoning, temporal reasoning, knowledge updates and knowing when not to answer.

Both measure recall of what was said in conversation with one user. That’s what memory for a chat assistant needs. It’s only part of what a coding agent needs, which is mostly knowing what was decided and what’s still true about a codebase, not what was said in chat.

Why published benchmark numbers disagree

Almost every agent memory number you’ll find was run by the company selling the memory. That doesn’t make them wrong, but it means the setup, the model and the scoring were chosen by an interested party, and they vary.

LoCoMo shows how far apart the numbers get:

  • Mem0’s paper reports a 26% relative gain over OpenAI on an LLM-judge score, and says its graph variant scores about 2% higher overall than its base.
  • Zep answered that Mem0 ran Zep wrongly, and after correcting its own calculation reported 75.14% for Zep. In the same post, Zep argues LoCoMo is too short to stress memory, doesn’t test knowledge updates, and has flawed questions, and prefers LongMemEval.
  • Mem0’s CTO recomputed Zep’s score at 58.44%, arguing that a category of questions had been counted in the numerator but not the denominator. Zep disputed it, and the issue was closed for inactivity.

Zep’s own paper reports accuracy gains of up to 18.5% on LongMemEval over its baselines. Again, Zep’s run.

So the honest reading is: one system’s score on one benchmark, from one vendor, with one model. Two vendors running the same benchmark on the same product have been more than 15 points apart. Treat any single number, including one we might publish, as a claim to check, not a ranking.

Where Memorinth sits, and where it doesn’t win

Memorinth is files first. A cortex is a folder of Markdown notes, and the index beside it is SQLite full-text search plus embeddings from a model that runs on your machine, rebuilt from the files and never holding anything they don’t. Search blends the two scores, as described in How offline hybrid search works. The graph is the [[wikilinks]] you and your agents write: agents follow them with get_note and related, and the app draws them in The graph. Time is handled the way Graphiti handles it, in spirit: decisions and facts are superseded and kept, not edited, so search can tell current from replaced.

The difference is who builds the structure. Memorinth extracts nothing on its own. An agent decides a memory is worth saving and writes it, and links are links someone chose. That’s cheaper and easier to trust, and it’s also more work and less complete.

Where the others are the better choice:

  • Many users, lots of conversation, nobody curating: an extraction pipeline like Mem0 or Zep will capture far more than agents writing notes on purpose.
  • Questions that join many entities: a typed knowledge graph like Graphiti answers “who owns what, since when” in ways a folder of notes and its links can’t.
  • If you need a public benchmark score: Memorinth has not published a LoCoMo or LongMemEval score. Its search is tuned on a small labelled set of queries over the cortex it’s developed with, which is a check against regressions, not a number to compare with anyone’s.

If what you need is memory for your own coding agents that you can read and fix, files with a search index and hand-made links are enough, and they’re the shape you’ll still be able to open in ten years. If you’re building memory for an app’s users, start with the frameworks. Mem0 vs Zep vs Letta compares them.

To see how the pieces fit, read Search by meaning and Links and backlinks, or Memorinth vs other agent memory for the products side by side.

All posts