Skip to content
SkilledDragonEngineering Intelligence
MinilabKeylessOctober 21, 2026

mem0 top-5 sent 127x fewer prompt tokens than full history and kept 83% of the evidence

A keyless bakeoff of mem0 OSS 2.2.1 against stuffing the whole history into the prompt, on a synthetic corpus of 27 labelled questions with up to 759 sessions of history.

By David Discua

Measured in the lab

83%
evidence in prompt, top-5 at 32 filler
127x
fewer prompt tokens than full history
20,283
full-history prompt, proxy tokens
27
labelled questions
mem0-oss-top5evidence in prompt 83%160
mem0-oss-top10evidence in prompt 83%257
recent-window-2048evidence in prompt 0%2,007
full-historyevidence in prompt 100%20,283

Bars on a log scale.

  • mem0 top-5 put the evidence in the prompt for 100% of questions with no filler
  • recent-window-2048 kept the evidence for 0% at 32 filler sessions per gap
  • A stale fact reached the top-5 prompt in 92% of update and contradiction questions
  • mem0 add p50 rose from 37.5 ms to 59.1 ms as the store grew to 2246 memories
  • Corpus and question files pinned by SHA-256

From reports/bakeoff.json · run on October 21, 2026. mem0ai 2.2.1, FastEmbed all-MiniLM-L6-v2, FAISS, infer=False; synthetic corpus; deterministic local reader, no LLM; proxy tokens

How it is wired

add160 tokens20,283 tokensChat historyup to 759 sessionsmem0 OSSFastEmbed + FAISSLocal readerrule-based, no LLM

01/03Three synthetic personas build up hundreds of chat sessions.

mem0 is an open-source memory layer for agents. MemForge asks whether its OSS build beats the plain alternative of sending the whole conversation history with every question. On a synthetic corpus padded with 32 small-talk sessions between facts, mem0's top-5 retrieval put 160 proxy tokens in the prompt where full history put 20,283, and it got the answer-bearing turn into the prompt for 83% of answerable questions against 100% for full history. The catch is that answers come from a rule-based local reader, so the accuracy numbers say what reached the prompt, not what a model would do with it.

The catch

The reader picks the most recent relevant mention of a labelled choice. It never gets lost in the middle of a long input, so full history scores 27 of 27 at every size here, and that is an upper bound a real model may miss. Judge mem0 on "evidence in prompt", which measures retrieval alone. The optional live arms that send the same prompts to a real Gemini model were not run in this lab, so there are no model-graded numbers yet.

mem0 runs with infer=False, so turns are stored verbatim and old and new versions of a fact sit side by side. An outdated statement reached the top-5 prompt in 92% of update and contradiction questions, and the model would have to sort them out by date. mem0's LLM extraction, which can merge memories, is not measured keylessly. The corpus is small, English-only and written so answer sentences share a word with the question.

What we ran (keyless)

uv sync --frozen
uv run memforge lint
uv run memforge pins --check
uv run python scripts/report.py

From reports/bakeoff.json, run on October 21, 2026 with mem0ai 2.2.1, at 32 filler sessions per gap:

ArmReader accuracyEvidence in promptStale fact in promptMean prompt tokensEst. input $ per 1k answers
mem0-oss-top523/27 (85%)83%92%160$0.1200
mem0-oss-top1023/27 (85%)83%92%257$0.1926
full-history27/27 (100%)100%100%20,283$15.2124
recent-window-20483/27 (11%)0%0%2,007$1.5055

With no filler, every arm put the evidence in the prompt for 100% of questions. At 8 filler sessions per gap, top-10 still held 100% and top-5 dropped to 88%. The misses come from near-miss filler lines that mention a question's subject without the answer and crowd the top-k slots. The fixed 2,048-token window lost everything older than the window. Ingest slowed as the store grew, from a 37.5 ms add p50 with 38 memories to 59.1 ms with 2246, because mem0's FAISS store rewrites its index files on every insert.

Token counts are proxy tokens (one per word or punctuation mark), and the dollar column multiplies them by a $0.75 per million input token list price. It shows scale only, and no vendor billed these runs.

How it is wired

One labelled corpus, one prompt template and one reader. Only the context block changes between arms: mem0 top-5 or top-10 memories with dates, the full history, or the newest sessions up to 2,048 proxy tokens. mem0 uses a local FastEmbed embedder and a FAISS file store, so the default run needs no API key. A small MCP server exposes the same store to an agent through tools like memory_add and memory_search, spawning the pinned Python CLI with a JSON payload.

Minilab (open source)

Upstream is mem0ai/mem0 (67,717 stars, Apache-2.0, Python, as of October 24, 2026). Add your own questions to fixtures/, re-pin with scripts/pin_fixtures.py, re-run uv run python scripts/report.py, and compare the evidence column in reports/bakeoff.json.

Run it yourself

SkilledDragonCorp/memforge

Clone, install and run the report with no API keys. The numbers above are what that run writes.

uv sync --frozen && uv run python scripts/report.py

SkilledDragon is not affiliated with Mem0, Google, Meta or Qdrant. Numbers are from our own keyless run on a synthetic corpus with a rule-based reader, not a vendor benchmark; re-run the report before relying on them. Marks belong to their owners.

All labs