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
15 lines
907 B
Plaintext
15 lines
907 B
Plaintext
# bm25: every question with no relevant passage in the top 5
|
|
|
|
q22 [paraphrase] "someone pushed a password to git"
|
|
returned : [p01, p02, p03, p04, p05]
|
|
wanted : {p40=2}
|
|
p40 says : Secrets live in the vault, never in source control. A secret found in a repository must be rotated immediately, even if the commit is removed.
|
|
first returned says : To reset a forgotten password, open the sign-in page, choose Forgot password and enter your work email. A reset link is emailed and stays valid for 30 minutes.
|
|
|
|
q24 [paraphrase] "money back after cancelling a yearly subscription"
|
|
returned : [p11, p07, p03, p18, p37]
|
|
wanted : {p22=2}
|
|
p22 says : Refunds for annual plans are prorated by unused full months. Monthly plans are not refunded.
|
|
first returned says : To roll back a release, redeploy the previous tagged version from the pipeline. Database migrations are not reverted automatically.
|
|
|