Repository navigation
fix(eval): keep the RAG retrieval benchmark running past a bad label - #8745
Conversation
The release RAG benchmark has aborted at about the eleventh technical-docs question on every tag since v0.26.0-rc26, because one evidence quote no longer matched the extracted PDF text, so technical_docs, xquad, the scale tiers and the hard cases went unmeasured. - Re-quote two labels from the text GAIA extracts today: CDNA 3 white paper p25 (MI300A max power, now a rebuilt table row) and MI300X data sheet p1 (SR-IOV partitions); both still say what the PDF says. All 55 technical_docs labels now resolve. - A label error is recorded per question and the run carries on; the question is left out of the scores, listed under "Label errors" in the report, and the CLI still exits 1 at the end. - Report and docs describe the agent path as rank fusion, not a keyword boost.
|
Verdict: Approve with suggestions The release RAG retrieval benchmark has been dying about eleven questions in because one evidence quote went stale. This PR fixes that quote and a second stale one, and changes the runner so a bad label is recorded against its own question while the rest of the run keeps going. The job still fails at the end, so a stale label can't slip through, and every other kind of crash still stops the run. The tests cover the cases that matter, and the docs match the new behaviour. One small edge to tidy, not blocking: if every question in a scale tier hits a label error, the tier crashes with a confusing missing-key error when it prints its summary, instead of reporting the label errors. Real-world evidenceN/A: no evidence bundle was produced for this run. The changed surface is the release-only 🔍 Technical detailsIssues 🟢 A scale tier where every label fails crashes on the summary log line ( summary = _summarize(results)
out["tiers"].append(...)
if not results:
log(f" scale-{tier}: no question scored (all label errors)")
continue(Or put the guard around just the Checked, no finding
Strengths
|
…ashing on its summary
The release RAG retrieval benchmark has failed on every tag since v0.26.0-rc26 because a single stale evidence label aborted the whole run about eleven questions in, leaving most of the benchmark (technical docs, XQuAD, the scale tiers, the hard cases) unmeasured. Now a bad label is recorded against its own question while the run carries on, so one stale quote can no longer hide everything after it, and the job still fails at the end when any label error occurred. The two stale quotes themselves are fixed in #8755.
🔍 Technical details
results.json(label_errorsper dataset and inmeta) and under Label errors in the report, andgaia eval retrievalexits 1. Any other exception still aborts the run. Scale tiers get the same handling; a tier where every label fails is reported instead of crashing on its summary line.docs/reference/eval.mdxno longer describe the agent path as a "keyword boost"; it has used rank fusion since Fix: fix(rag): query_documents ranks any keyword hit above every semantic match, and slows down at scale #8737.Test plan
pytest tests/unit/rag/test_retrieval_bench_harness.py tests/unit/eval/test_retrieval_bench.py(new: a bad label mid-dataset, every label bad, a label on a missing page, a non-label failure still aborting, scale tiers with some/all bad labels, report section, CLI exit code)eval_retrieval.ymlon main and confirm it runs through every dataset