Add LongMemEval retrieval benchmark#14
Merged
Merged
Conversation
Owner
|
Maintainer audit fix pushed in The original All 272 tests and the full local benchmark/fuzz/soak set pass. Waiting for the refreshed cross-platform matrix before merge. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4.
Summary
bench/longmemeval.py, a stdlib LongMemEval retrieval harness that maps official cleaned oracle histories toremember()and benchmark questions torecall()has_answerannotations, falling back to answer-session evidence only for sessions that have no marked answer turn--datafor a local file or alternate URLMaintainer audit correction
The initial harness counted every turn in an answer session as evidence. That made the public subset report
evidence@1 = 1.000even when recall returned an unrelated turn from the correct session. The audited revision now:has_answerturns at turn granularityVerification
python3 -m unittest discover -s tests— 272 passedpython3 bench/bench.pypython3 bench/multilang.pypython3 bench/discrim.pypython3 bench/soak.pypython3 bench/fuzz.py --quickpython3 bench/longmemeval.py --data tests/fixtures/longmemeval_tiny.json --limit 2python3 bench/longmemeval.py --limit 50python3 -m compileall mind.py bench/longmemeval.py tests/test_longmemeval_bench.pygit diff --checkPublic LongMemEval subset result on the official cleaned oracle JSON:
This is a retrieval benchmark, not LLM answer grading. The corrected lower evidence score is intentional: it reports retrieval of the actual annotated evidence turn instead of any turn from the right session.