Skip to the content
Wrong answers: 62 with embeddings, 17 without

I took the embeddings out of agent memory

Arslan Rakhmatullin

Platform architect, as an outside expert or on your team. Let’s talk

On 120 questions from LongMemEval, a public test of long-term chat memory, an agent using Mnemosyne, an open-source memory with embeddings, gave 62 wrong answers. With my fork it gave 17. The caller model, the questions, the judge and the harness were the same in both runs. Accuracy went from 48.3% to 85.8%., source: README.md line 9

The fork is PerfectRecall. It keeps Mnemosyne’s SQLite storage, and it has no embeddings.

What changed

The baseline is the original Mnemosyne code. It ranks memories with OpenAI’s text-embedding-3-small plus its own hybrid ranking.

In the fork, the calling agent writes one to three short yes/no questions for each search, for example “Does this memory name Project Cedar’s database?” A decision model called Jev answers each question for every eligible memory. The records that match go back to the agent as they were written, and the agent does the comparing and the reasoning. There is no vector index and no hidden model rewriting the query.

How I ran it

Both runs used openai/gpt-5.6-luna at high reasoning effort as the caller and openai/gpt-4.1 as the judge. The cases are 20 of each of the six question types, picked by hash. The selection was frozen before the first case was called., source: confirmation-freeze.json line 3

Each chat history was cut into 6,000-character records. The caller got up to three searches, 20 records and 120,000 characters in total. Gold answers stayed out of retrieval and out of the caller’s prompt.

Where the gain came from

The fork fixed 54 baseline errors and made 9 new ones., source: README.md line 15 Questions about what the assistant had said earlier went to 20 of 20 right; preference questions barely moved and hold 5 of the 9 regressions.

Wrong answers, with my fork17 of 120

Updated facts · wrong 8, then 2

Across sessions · wrong 11, then 4

What the assistant said · wrong 15, then 0

Preferences · wrong 7, then 6

What the user said · wrong 14, then 3

Dates and order · wrong 7, then 2

One cell per question, in the results file's order, one row per type. Clay: wrong with the fork. Hollow: fixed by it. Outlined: right before, wrong with it.

What it cost

The fork’s run made 114,724 Jev requests for about $2.70. The baseline’s embeddings took 369 calls for about $0.26. Caller and judge came to about $0.21 for the baseline and $0.29 for the fork., source: README.md line 35

The fork’s retrieval came to roughly ten times the embedding bill. Every search checks every eligible memory, so the bill grows with the corpus, and a smaller top-k does not change that.

What it does not show

  • It is not the current release. The run measured a frozen predecessor, then called Jevosyne. The release adds a revised prompt. It also changes packaging, storage and speed, and it has had no fresh independent test., source: README.md line 33
  • It is not a LongMemEval score. It is my own paired tool-use test, graded by a model, with my answer policy.
  • It missed my target. I wanted 80% fewer errors and got 72.6%. If every retried baseline case counts as right and every retried fork case as wrong, it is 61 against 18, or 70.5%.
  • The 90.8% doesn’t count. A revised prompt scored 90.8% on the same 120 cases. It reused the cases after the frozen run, so it is development work.
  • Another benchmark tied. In a 20-case development run on PersonaMem-v2, both sides made 9 errors.

What to copy

  • Grade the final answer. Put the same caller on each memory system and judge its answers. A found record is not a right answer.
  • Freeze the cases first. Pick them by hash, record the selection before the first call, and keep failed attempts in the count.
  • Publish regressions and the bill. 54 fixes mean less if you hide 9 new errors and a tenfold retrieval cost.

The benchmark notes have the per-case results, the dataset hash, and pinned patches to rebuild the two runtimes. A rerun costs money and can differ, because models and routing change.

Sources

  1. The results table. README.md:9
  2. Frozen on September 20, 2026, before any case calls. confirmation-freeze.json:3
  3. 54 repaired, 9 regressions. README.md:15
  4. Observed usage and cost. README.md:35
  5. “No table above is a fresh independent evaluation.” README.md:33