Repository navigation
test(longmemeval): temporal date-window boost (#1119) - #1126
Merged
Merged
Conversation
- temporal.py: temporal expression parser -> (lo,hi) window; patterns: last-N, N-days/weeks-ago (digits+words), last week/month, between X-Y, before/after month, in-month, this month/year - boost_ranking(): additive RRF boost for in-window sessions - run_eval.py: --temporal flag (default OFF) + --temporal-boost (0.0022) - modal_fast50.py: bake temporal.py into image; LMEVAL_TEMPORAL=1 passthrough - test_temporal.py: 21 unit tests (parser + boost math), all passing
…volume cache Two bugs in the A/B harness found before burning Modal credits: - LMEVAL_TEMPORAL was read at module level inside the container, so the env var never reached the worker: a --temporal run would silently execute the baseline. The flag now travels through the shard spec. - Shard cache keyed only by strategy: a temporal shard would resume from the stale 470Q baseline volume entry. Volume paths are now variant-keyed (hybrid vs hybrid_temporal).
ajianaz
force-pushed
the
test/1119-temporal-boost
branch
from
August 27, 2026 05:17
db6b5ff to
ba76118
Compare
🔍 Cora AI Code Review❌ Blocked — critical issues found. 🔴 Error (1)
Review powered by cora-code · BYOK · MIT |
9 tasks
What
Supersedes #1125 (auto-closed when its base branch merged; same head, retargeted to develop).
Why
Temporal reasoning is the single largest measured gap (12.8 Q-worth of k10→k5 loss in the 500Q run). Sessions with relevant dates systematically lose to old distractors because embeddings cannot see dates. A harness-side date-window boost is zero-model post-processing — consistent with the single-model (EmbeddingGemma) decision; no new downloads, no runtime deps. Default OFF preserves baseline behavior for A/B.
Testing