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
9 lines
512 B
Bash
Executable File
9 lines
512 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Rewrites src/test/resources/baseline.properties from the current retriever. Run it on purpose, after an
|
|
# improvement you want to lock in, and review the diff like code. Tolerance 0.04 is a little more than one
|
|
# question moving one rank on 30 questions.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
mvn -q -B compile 2>&1 | grep -E "ERROR" || true
|
|
java -cp target/classes com.ankurm.rageval.WriteBaseline "${1:-bm25}" src/test/resources/baseline.properties "${2:-0.04}" 2>&1 | grep -v Picked
|