hit@k, recall@k, precision@k, MRR and nDCG@k in plain Java with their edge cases pinned by tests, a 30-question graded golden dataset over a 40-passage runbook, a paired bootstrap, and a gate (baseline + tolerance + no new misses) shown failing on a tokenizer that drops digits. BM25, a hashed-trigram vector (not a neural embedding) and RRF; no model, no network. Java 25, JUnit 6.1.3. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7F47n8shUHpexxavn
13 lines
753 B
Plaintext
13 lines
753 B
Plaintext
# Paired bootstrap, 10,000 resamples of the 30 questions, seed 42
|
|
|
|
candidate vs bm25 metric mean diff 95% interval interval excludes 0?
|
|
ngram mrr +0.061 [-0.067, +0.183] no
|
|
ngram recall@5 +0.017 [-0.067, +0.117] no
|
|
hybrid mrr +0.057 [-0.038, +0.147] no
|
|
hybrid recall@5 -0.017 [-0.050, +0.000] no
|
|
bm25-lettersonly mrr -0.063 [-0.159, +0.000] no
|
|
bm25-lettersonly recall@5 -0.067 [-0.167, +0.000] no
|
|
|
|
one question can move MRR by at most 1/30 = 0.033 (a miss becoming a rank-1 hit)
|
|
one question moving from rank 2 to rank 1 moves it by 0.5/30 = 0.017
|