Skip to content
vsahasiPublic

About

Standardized eval harness for LLM memory systems — tests Mem0, naive RAG, and long-context baselines on 5 memory scenarios

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

MemEval

Standardized evaluation harness for LLM memory systems. Tests Mem0, naive RAG, and long-context baselines on 5 memory scenarios.

Why

Memory-augmented agents need regression tests. Without them, you're shipping on vibes. MemEval gives you a repeatable, scored benchmark.

Scenarios

# Scenario Tests
1 Recall under distance Store a fact at turn 1, retrieve at turn 20 with noise in between
2 Preference update User changes a preference — does the system track the latest?
3 Contradiction handling Two conflicting facts — does the system flag it or silently pick one?
4 Noise filtering 3 important facts buried in 20 turns of casual chat
5 Cross-session persistence Memory survives session restart

Scoring

Each response is graded by an LLM judge (Claude) on a 4-point rubric:

  • exact_recall — all key facts captured accurately
  • partial_recall — some facts captured, vaguely correct
  • wrong — confident but factually incorrect
  • hallucinated — includes fabricated details

Quick Start

git clone https://github.com/YOUR_USERNAME/memeval.git
cd memeval
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt

# Set your API keys
cp .env.example .env
# Edit .env with your OPENAI_API_KEY and ANTHROPIC_API_KEY

# Run all scenarios
python run_eval.py

# Run specific backend or scenario
python run_eval.py -b mem0 -b rag -s recall_under_distance

Output

Generates a markdown report at reports/report.md with:

  • Summary table (scenario x backend)
  • Win counts
  • Detailed responses and judge reasoning
  • Failure analysis with specific traces
  • Recommendations for what a memory eval product could look like

Architecture

run_eval.py          # CLI entry point
memeval/
  scenarios.py       # 5 scenario definitions
  backends.py        # Mem0, naive RAG, long-context backends
  judge.py           # Claude LLM-as-judge
  report.py          # Markdown report generator

License

MIT

About

Standardized eval harness for LLM memory systems — tests Mem0, naive RAG, and long-context baselines on 5 memory scenarios

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages