Repository navigation
fix(benchmark): disable score threshold in LongMemEval harness (#995) - #996
Merged
Merged
Conversation
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
Add --min 0.0 to recall command to evaluate raw retrieval ranking without CLI default threshold (0.3) filtering relevant results. Also document threshold chain inconsistency: - CLI default: 0.3 (from config [recall] min_score) - HTTP API default: 0.0 (DEFAULT_MIN_SCORE constant) - MCP default: 0.0 This caused 8/500 false negatives in Oracle benchmark because relevant sessions scoring 0.30-0.40 were silently filtered.
ajianaz
force-pushed
the
fix/995-threshold-benchmark
branch
from
August 11, 2026 07:21
e99aa73 to
f7e7d28
Compare
This was referenced Aug 11, 2026
Merged
ajianaz
added a commit
that referenced
this pull request
Aug 11, 2026
Version bump 0.13.1 → 0.13.2 + CHANGELOG. Changes since v0.13.1: - feat: update check (CLI, MCP, HTTP) (#990) - fix: NULL embeddings crash vector index (#992, #993) - fix: absolute URL in update check redirect (#994) - fix: LongMemEval benchmark threshold false negatives (#995, #996) - chore: branding refresh (#991) Co-authored-by: ajianaz <[email protected]>
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
…#996) Add --min 0.0 to recall command to evaluate raw retrieval ranking without CLI default threshold (0.3) filtering relevant results. Also document threshold chain inconsistency: - CLI default: 0.3 (from config [recall] min_score) - HTTP API default: 0.0 (DEFAULT_MIN_SCORE constant) - MCP default: 0.0 This caused 8/500 false negatives in Oracle benchmark because relevant sessions scoring 0.30-0.40 were silently filtered. Co-authored-by: ajianaz <[email protected]>
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
Version bump 0.13.1 → 0.13.2 + CHANGELOG. Changes since v0.13.1: - feat: update check (CLI, MCP, HTTP) (#990) - fix: NULL embeddings crash vector index (#992, #993) - fix: absolute URL in update check redirect (#994) - fix: LongMemEval benchmark threshold false negatives (#995, #996) - chore: branding refresh (#991) Co-authored-by: ajianaz <[email protected]>
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.
What
Fix 8/500 false negatives in LongMemEval Oracle benchmark caused by CLI default score threshold filtering relevant results.
Why
The LongMemEval harness calls
uteke recallwithout--min, which falls back to the CLI defaultmin_score = 0.3(from[recall]config). Relevant evidence sessions scoring between 0.30–0.40 were silently filtered out, causing Recall@5 = 0.0 for 8 questions that should have had hits.Root cause: threshold defaults differ across interfaces — CLI defaults to 0.3 (UX feature for production), but HTTP API and MCP both default to 0.0. The benchmark harness uses the CLI, so it inherited the stricter threshold.
Impact: 8 misses → Recall@5 should improve from 98.4% → ~100% for Oracle subset.
Changes
benchmarks/longmemeval/run_eval.py— Add--min 0.0to recall command. Benchmarks need to evaluate raw retrieval ranking quality without UX threshold filtering. Every other benchmark system (Mem0, Zep, paper baselines) evaluates raw ranking.docs/configuration.md— Added callout box documenting the threshold chain inconsistency across CLI (0.3) / API (0.0) / MCP (0.0). Markedmin_scoresettings as "CLI only" in the table.docs/api-reference.md— Clarifiedmin_scoredefault for HTTP API (0.0, no filtering) and relationship withstrictflag.Testing
cargo fmt --all— ✅ clean (no Rust changes)cargo clippy --workspace --all-targets -- -D warnings— ✅ N/A (docs + Python only)cargo test --workspace— ✅ N/A (docs + Python only)recall --min 0.0returns score 0.40 results that default threshold filters ✅Checklist