Repository navigation
fix(eval): re-pin two stale answer-key quotes in technical_docs - #8755
Conversation
|
Verdict: Approve This fixes two answer-key quotes in the retrieval benchmark that no longer matched the text GAIA pulls out of the PDFs. That mismatch is what stopped the release RAG benchmark. The questions, answers and pages are unchanged, so both items still test the same facts, and the new quotes match the extracted text on both pypdf versions in play. One loose end: the full Real-world evidenceN/A: this PR only changes eval data, and the evidence stage produced no bundle. The verdict rests on static review, plus the author's label-scan output in the PR body: 2 of 55 quotes failed before the change and 0 of 55 after, under pypdf 6.21.1 and 7.1.0. I did not re-run that scan here. 🔍 Technical detailsIssues found 🟢 The tech-023 quote no longer contains the question's keyword ( Checks run
Strengths
|
|
Keeping the tech-023 quote as it is. Any quote that names SR-IOV and also holds the answer has to cross that comma, and the comma is exactly what differs between pypdf versions. The page is pinned and the phrase appears once on it, so a chunk that covers it is on the right row. 🔍 Technical detailsRe-checked independently against a fresh extraction (pypdf 7.1.1, which the release runner installs, VLM off): all 55 technical_docs labels resolve on this branch, and both new quotes are verbatim page text (CDNA 3 p25 MAX POWER row; MI300X data sheet p1). |
…8745) 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. <details> <summary>🔍 Technical details</summary> - A question with a label error is left out of the scores, listed in `results.json` (`label_errors` per dataset and in `meta`) and under **Label errors** in the report, and `gaia eval retrieval` exits 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. - The report, the harness docstring and `docs/reference/eval.mdx` no longer describe the agent path as a "keyword boost"; it has used rank fusion since #8737. </details> ## Test plan - [x] `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) - [ ] After merge (with #8755): dispatch `eval_retrieval.yml` on main and confirm it runs through every dataset
|
That stale quote had been quietly breaking the whole RAG benchmark for weeks. Thanks for tracking it down @c0mrade8! |
Summary
Two quotes in
technical_docs.jsonstopped matching the text GAIA indexes from the PDFs, which is what killed the release RAG benchmark. This re-points them at the same answers. Questions, answers and pages are unchanged.Why
The benchmark checks that every labelled quote can be found on its page, and it stops at the first one it can't. That's the
LabelErroron tech-012 in the issue.MAX POWER 550W or 760W 750W 1000W) is the table cells in plain order. Since fix(rag): keep PDF table rows whole and send table math to run_python #8116 (39606a8a4) GAIA indexes table rows asHeader: value | ..., so it no longer matches. I bisected with pypdf 7.1.0: it resolves at39606a8a4~1and fails at39606a8a4.SR-IOV , up to 8 partitions) has a space before the comma. The PDF doesn't (I checked page 1), and pypdf 7.1.0 extracts it without one, but pypdf 6.21.1 (the version fix(rag): unblock the release retrieval eval (image chunks, pypdf labels) #5490 names as CI's) does add the space. So the quote matches on one pypdf version and not the other. It fails under 7.1.0 even before fix(rag): keep PDF table rows whole and send table math to run_python #8116, so fix(rag): keep PDF table rows whole and send table math to run_python #8116 isn't the cause. The new quote starts after the comma, so it resolves under both.I checked both against the PDFs: the Max Power row on page 25 of the CDNA 3 white paper, and the SR-IOV row on page 1 of the MI300X datasheet.
One thing I noticed but didn't touch: on the tech-012 page the extractor treats the FORM FACTOR row (
SH5 Socket | OAM | OAM) as the header, so rows readFORM FACTOR: MAX POWER | SH5 Socket: .... The values still sit next to their labels, so I don't think it breaks retrieval, but it reads oddly. I can open a separate issue if you'd consider it a bug.Linked issue
Refs #8407
The issue also asks for a fast, no-model check that runs on PRs, so a stale quote fails where it's edited. I'd like to do that in a second PR, but I'm happy to fold it into this one if you'd rather.
Changes
MAX POWER | SH5 Socket: 550W or 760W | OAM: 750W | OAM: 1000Wup to 8 partitions *The MI200 Series. It starts after the comma, so pypdf's spacing doesn't matter, and it still contains the answer. It runs on into the footnote under that row because the dataset test requires quotes of at least 20 characters, andup to 8 partitionsalone is 18.Test plan
technical_docs.json(including the table-tagged items from the bot's list) and the 8 PDF-backed labels inrepo_docs.json(repo-001 and repo-007 among them). Before: 2 of 55 failed. After: 0 of 55 under pypdf 6.21.1 and 7.1.0, and 0 of 8 forrepo_docsunder 7.1.0. VLM off, pypdfium2 5.15.2. repo-028 is a.txt, which the PDF table rewrite doesn't touch, so I didn't scan it.python -m pytest tests/unit/eval/test_retrieval_bench.py -qafter the final edit: 77 passed, including the dataset well-formedness testpython -m pytest tests/unit/eval -q: 2096 passed, 34 skipped (run before the tech-023 quote changed)python util/lint.py --all --fix: only two Pylintos.getuiderrors, which are Windows-only and in files this PR doesn't touch. I didn't run the fulltests/unit/locally since this is a data-only change; CI covers it.gaia eval retrieval --suite fullbenchmark. It needs Lemonade and the VLM, which my machine can't run. Could someone confirm it on the release runner? It would also help to know which pypdf version that runner uses.Evidence
The script isn't a
gaiasubcommand: it'spython scan_labels.pyfrom the repo root, and the source is in the details block below.Before, on
mainwith pypdf 7.1.0:After, under pypdf 6.21.1 and 7.1.0:
Other surfaces: N/A, eval data change only.
scan_labels.py
Checklist
Closes #N/Fixes #N/Refs #N).