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
10 lines
397 B
Bash
Executable File
10 lines
397 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regenerates every file under output/. 00-07 are written by the test suite itself through the Transcript
|
|
# helper; 08 is the recorded output of a deliberately failing gate. No Docker, database, model or API key.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
rm -rf target
|
|
mvn -q -B test 2>&1 | grep -E "Tests run:|BUILD|FAIL" || true
|
|
scripts/ci-fail-demo.sh > /dev/null
|
|
ls output
|