Skip to content
vivek9patelPublic

About

Vendor-agnostic harness for evaluating memory systems: it scores answers and classifies why a question failed.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

memx

Vendor-agnostic harness for evaluating memory systems: it scores answers and classifies why a question failed.

Ingest conversational sessions into a backend (any adapter), ask benchmark questions, judge the answers, then on each FAIL snapshot the store and assign a stage: extraction, conflict resolution, mutation, or retrieval. Inspect one case with memx debug.

A run ingests the full official history on each case (LoCoMo conversation or LongMemEval haystack) before asking selected questions. --limit / --random only choose which questions to score.

What a run gives you

  • Pass/fail per question (LLM judge)
  • A Diagnostic Summary of FAIL counts by stage
  • .memx/last_run.json with gold, candidate, retrieval, state diff, and diagnosis
  • memx debug for one record: question, gold, provider answer, retrieved facts, stage badge, state diff

Diagnostic Summary after a hosted run

memx debug on a FAIL

Passes are not classified. If the judge failed but the store and retrieval look correct, the stage is No Failure (often answer synthesis, not memory).

Failure stages

Stage Meaning
1 Extraction Needed fact never entered the store
2 Conflict resolution Two relevant truths both ACTIVE, no supersedes link
3 Mutation Conflict linked, old row still ACTIVE
4 Retrieval Store looks correct; search missed the fact

Details: docs/diagnostics.md.

Install

Python 3.11+. The PyPI name is memx-eval; the CLI and import stay memx.

pip install memx-eval
pip install "memx-eval[providers]"   # Mem0 + SuperMemory SDKs

From this repo: pip install -e ".[dev]" (or ".[mem0]" / ".[supermemory]" / ".[providers]").

Quick start

export SUPERMEMORY_API_KEY=...   # or MEM0_API_KEY and --adapter mem0
memx datasets pull locomo
memx run --dataset locomo --adapter supermemory --limit 5 --random

See docs/adapters.md.

Docs: docs/README.md. Local site:

cd website && npm install && npm run dev

http://localhost:3000. npm run build writes website/out/ (set the host project root to website/; the build still reads ../docs).

pytest tests/ -v

MIT. See LICENSE.

About

Vendor-agnostic harness for evaluating memory systems: it scores answers and classifies why a question failed.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages