Recent Study
RAG Optimization Benchmark: How 14,545 Scored Answers Picked One Configuration
BenchmarkBy RCTK (author on LinkedIn)Published Revised
This report documents the systematic optimization of a Retrieval-Augmented Generation (RAG) pipeline through four rounds of evidence-based testing on a public expert-QA benchmark: 14,545 scored answers narrowing 40 configurations to one preferred candidate.
Summary
Reading time: Part I about 11 min, Part II about 42 min
- Question
- Which retrieval and generation settings improve answer quality for document search, and which commonly recommended ones do not?
- Evidence
- Internal benchmark on a public expert-QA dataset (ExpertQA, as packaged in RAGBench), using open-weight models on one consumer GPU. No client data.
- What was done
- Four rounds of configuration sweeps, 14,545 scored answers across 40 configurations (4 + 28 + 8 compared at the decision points; 85 cells run), scored with automated metrics, 1,598 of them also rated by an LLM judge calibrated against 50 human ratings.
- Result
- One configuration selected as the preferred candidate under the study’s selection process; three decisions carried forward from v5 and v6 (prompt template, window size 1 against 2, reranking) were not re-tested after the October 2026 correction. Judged helpfulness 4.37 against 4.25 for the starting setup (1 to 5; 200 and 199 rated answers), a small but statistically detectable difference. Reranking scored lower in both configuration rounds: in v5 on adherence (0.682 against 0.701, 600 answers each way, not significant, p = 0.166) and relevance (no test), and in v6 on the binary-era composite (0.651 with reranking against 0.688 without, 800 answers each way; unchanged by the NLI correction); the LLM judge did not re-test it. Hybrid search lowered the two fidelity scores (adherence by 0.080 and corrected NLI faithfulness by 0.063, 600 answers each) while raising coverage. NLI faithfulness, re-scored with the right label in October 2026, finds about 0.30 of the finalists’ answer sentences supported by a single retrieved passage (799 answers; a sentence-level check, so unsupported is not the same as false); the final selection gave that metric zero weight.
- Main limitations
- Selection was in-sample on the same question set. The judge’s agreement with humans (weighted kappa 0.47) missed the study’s own 0.6 target. Reranking had helped in two earlier internal test rounds on other public datasets. The winner is statistically tied with one alternative, and its end-to-end latency under load was about 28 seconds. The NLI faithfulness scores published until October 2026 counted the model’s neutral label as entailment; the corrected scores change several v5 and v6 findings (window size, prompt template, top_k, the size of hybrid’s fidelity loss) and not the final selection, which gave NLI zero weight from v7.
- Relevance to you
- The method is what transfers, not the winning settings: test configurations on your own documents and questions before trusting defaults.
- Selection
- Every configuration was tuned, selected and scored on the same benchmark questions: 150 in v5, then 200 (which contain the 150) in v6 to v8. The v7 composite weights and the final decision rule were chosen after the results had been examined. The judge’s rubric was revised once against the 50 human labels and re-evaluated on the same 50.
- Confirmation
- None held out. Every round drew on the same 200 questions (v5 on a 150-question subset of them), so the selected configuration’s scores, including judged helpfulness 4.365 and composite 0.582, are in-sample and were not confirmed on unseen questions.
- Evidence access
- Public: the dataset, the ExpertQA test split as packaged in RAGBench (cited in References). Internal: the analysis reports and result files listed in the artifact index (Part II, Section 10), available on request. Internal benchmark, not independently checked.
Four rounds of testing on one public expert-QA dataset, 14,545 answers scored on 200 questions across 40 configurations (4 splitting methods, 28 parameter combinations and 8 generation settings; 85 cells run in all), narrowed to one configuration whose judged helpfulness was 4.37 out of 5 against 4.25 for the starting setup: a gain of 0.12 on a 1-to-5 scale, small but statistically detectable. The study’s other result is about measurement: a pass/fail scoring that hid real differences was replaced in Round 3, and the faithfulness scorer, re-checked in October 2026, turned out to have read the wrong label for three rounds; the final selection rests on neither, and the lesson is to fix the measurement before trusting the ranking.
The Challenge
When organizations use AI to answer questions from their own documents (contracts, research papers, technical manuals, policy guides), the quality of those answers depends on dozens of configuration decisions. How should documents be split into searchable pieces? How many pieces should the system retrieve? How should they be ranked? How should the AI be instructed to formulate its response?
These choices directly affect whether answers are reliable enough to trust in real work. When the configuration is wrong, the consequences are concrete: unreliable answers, teams that revert to manual search, and support escalations that the system was supposed to prevent. Yet most teams either accept default settings or make these choices based on intuition, and without testing, there is no way to know how much quality is being left on the table.
I took a different approach: systematic, evidence-based testing. I designed a series of experiments to measure the impact of every major configuration decision, compare the alternatives head-to-head, and follow the evidence to a final recommendation.
To stress-test the configurations, I used a deliberately challenging multi-domain benchmark: ExpertQA, a public set of expert-level questions spanning medicine, law, science, and technology (Malaviya et al., 2023, arXiv:2309.07852). I used it as packaged in RAGBench (Friel, Belyi and Sanyal, 2024, arXiv:2407.11005), whose metric names (adherence, relevance, utilization, completeness) this study uses. These are the kinds of complex, cross-domain queries that expose weaknesses in a document search system, providing stronger evidence than testing on routine questions alone.
The result: four rounds of progressively focused testing (14,545 answers scored over 5 days, 1,598 of them also judged) that narrowed 40 configurations down to one preferred candidate.
Why This Kind of Testing Matters
Most AI document search systems are deployed with settings that feel plausible but have never been tested against alternatives. Over four rounds, evidence-based testing challenged one commonly recommended step, re-ranking, on this dataset, caught a silent failure in the evaluation system itself, and identified a configuration that no amount of intuition would have reached. A second silent failure, in the faithfulness scorer, was caught only after publication, when the stored scores were re-computed; it changed several intermediate findings and not the final choice.
When leadership asks “why this configuration?”, every choice traces back to a specific round of testing. When a component turns out to hurt rather than help, it is caught before deployment. When the measurement system itself stops working, that has to be caught too: here one failure was caught in Round 3 and another only on re-checking the published numbers.
The Approach: Test, Measure, Narrow, Repeat
The evaluation pipeline had been used in earlier rounds of internal testing on other datasets (CovidQA and TechQA) before this benchmark began. With tested infrastructure in hand, I designed a four-round optimization funnel. Each round answered one specific question, and its findings constrained the next:
- Round 1: Which document-splitting method produces the best answers? Four methods tested across 7,350 evaluations.
- Round 2: How should the selected method be fine-tuned? Twenty-eight parameter combinations tested across 5,597 evaluations.
- Round 3: Are the measurements trustworthy? A measurement audit that re-scored 1,598 answers and revealed a critical flaw in the scoring system.
- Round 4: Which configuration produces the most helpful answers? An independent AI judge, calibrated against human ratings, scored 1,598 answers for real-world usefulness.
Part II refers to the rounds by their internal version numbers: Round 1 = v5, Round 2 = v6, Round 3 = v7, Round 4 = v8.
Each round eliminated weaker options and sharpened the focus for the next:
Round 1: Four splitting methods compared (49 cells run)
Round 2: Selected method fine-tuned (28 combinations)
Round 3: Measurements audited and fixed (8 configurations)
Round 4: Best configuration identifiedThe methodology (select, optimize, audit, validate) is designed to be reapplied on other AI pipelines, though the specific results must be validated on the target dataset and use case.
Round 1: Finding the Right Foundation
The first and most impactful decision in any document search system is how to break documents into searchable pieces. A long technical manual or research paper must be divided into smaller segments that the system can retrieve individually. How those segments are created has a cascading effect on every answer the system produces.
I tested four fundamentally different splitting methods across 7,350 question-answer evaluations, measuring each on fidelity to source material, question coverage, and effective use of retrieved information.
No single method dominated every measure. One led on source fidelity; another led on question coverage and information usage, and, once the faithfulness scorer was corrected (see Round 3), on faithfulness as well. The selected foundation was sentence-window retrieval, an approach that retrieves a targeted passage along with its immediate neighbors, balancing precision with enough surrounding context to answer well. It offered the strongest overall balance across quality, operational stability, and tunability for further optimization.

Data plotted in Figure 1
| Technique | Adherence | NLI faithfulness | Relevance | Utilization | Completeness |
|---|---|---|---|---|---|
| recursive_400 | 0.634 | 0.313 | 0.524 | 0.553 | 0.259 |
| semantic | 0.733 | 0.351 | 0.589 | 0.646 | 0.256 |
| sentence_400 | 0.674 | 0.336 | 0.571 | 0.573 | 0.261 |
| sentence_window_3 | 0.688 | 0.408 | 0.808 | 0.836 | 0.235 |
Cell = mean of per-response scores, as printed in the figure. NLI faithfulness re-scored 2026-10-16: a sentence counts as supported when its highest entailment probability against a retrieved chunk is at least 0.5. The scores first published counted the neutral label (index 2) as entailment.
This round also uncovered a counterintuitive finding: a commonly recommended processing step called “re-ranking,” a second-pass filter intended to improve retrieval quality, actually lowered the quality scores on this dataset. I flagged it for confirmation in the next round.
Round 2: Fine-Tuning the Selected Method
With sentence-window retrieval as the foundation, Round 2 tested variations of its key parameters across 5,597 evaluations. The most important was “window size”: how much surrounding context to include around each retrieved sentence, ranging from minimal (just the neighboring sentences) to broad (several sentences in each direction).
The two smallest windows tied for the highest quality; the two largest scored lower. On the corrected overall score (200 questions per window size), window sizes 1 and 2 scored 0.659 and 0.660, and sizes 3 and 4 scored 0.650 and 0.633. At the time, under the faithfulness scores that were later found to be mis-read, the smallest window had looked clearly best (0.769 against 0.759 for the next size), and it was carried forward; it still leads on source fidelity.

Data plotted in Figure 2
| Window size | n | Mean composite | 95% CI lower | 95% CI upper |
|---|---|---|---|---|
| 1 | 200 | 0.659 | 0.635 | 0.684 |
| 2 | 200 | 0.660 | 0.634 | 0.686 |
| 3 | 200 | 0.650 | 0.624 | 0.676 |
| 4 | 200 | 0.633 | 0.604 | 0.661 |
Composite recomputed with the corrected NLI term (weights 0.30 / 0.25 / 0.20 / 0.15 / 0.10). NLI faithfulness re-scored 2026-10-16: a sentence counts as supported when its highest entailment probability against a retrieved chunk is at least 0.5. The scores first published counted the neutral label (index 2) as entailment.
This round also confirmed the earlier finding about re-ranking. Across multiple parameter combinations, disabling re-ranking consistently improved quality. Two successive rounds, thousands of evaluations each, pointed the same way, but Round 2’s 200 questions included all 150 from Round 1, so the second round was not an independent sample. Both rounds used the pass/fail scoring that Round 3 later replaced, and I did not re-test re-ranking after that fix. In two earlier internal test rounds on other public datasets (CovidQA and TechQA), re-ranking had raised the source-fidelity score, so this finding is specific to this dataset. The re-ranking result is one of the Round 2 findings that the faithfulness correction described in Round 3 did not change. Without testing, this step would have shipped by default, adding latency while lowering the quality scores.
I also tested how different instructions affect the AI’s responses. A detailed template, one that asked the AI to provide thorough, well-sourced answers, appeared to outperform the default and became part of the configuration carried forward. That appearance did not survive the October 2026 correction of the faithfulness scorer: on the corrected overall score the detailed template is 0.005 below the default at the smallest window size (0.003 to 0.014 below across the four sizes), so Round 2 no longer supports it. It stayed in the configuration because all four finalists of Rounds 3 and 4 were built on it (three of the eight Round 3 configurations used other templates), and those rounds gave the faithfulness score no weight.
Round 3: When the Measurements Stopped Working
After two rounds of optimization, I had a strong starting configuration with tested parameter choices. The next step was testing how the AI formulates its responses: how creative versus deterministic it should be, response length limits, and prompt variations. I tested eight configurations.
The top four scored almost identically. Their quality scores, on the scoring in use at the time, differed by less than two-tenths of a percent. It looked like a plateau.
I could have stopped here. Instead, I investigated why the scores were so similar.
Two of the five quality measurements, relevance and utilization, had “ceiling effects.” Imagine a thermometer that only goes up to 100 degrees being used to measure temperatures of 105 or 110: everything above 100 reads the same. Most answers were scoring at the maximum on both metrics (a third, adherence, had 22.8% of the same 1,598 answers at the maximum, short of a ceiling). On relevance, 87% of the 1,598 Round 3 answers received the maximum score.

Data plotted in Figure 3
| Metric | Formulation | n | Mean | Median | Q1 | Q3 | 95% CI of mean | At ceiling (%) |
|---|---|---|---|---|---|---|---|---|
| Adherence | Binary | 1,598 | 0.755 | 0.737 | 0.667 | 0.909 | [0.746, 0.763] | 22.8 |
| Adherence | Continuous | 1,598 | 0.616 | 0.601 | 0.558 | 0.671 | [0.611, 0.620] | 0.0 |
| Relevance | Binary | 1,598 | 0.912 | 1.000 | 1.000 | 1.000 | [0.899, 0.924] | 86.7 |
| Relevance | Continuous | 1,598 | 0.581 | 0.580 | 0.503 | 0.661 | [0.576, 0.587] | 0.0 |
| Utilization | Binary | 1,598 | 0.927 | 1.000 | 1.000 | 1.000 | [0.918, 0.936] | 80.7 |
| Utilization | Continuous | 1,598 | 0.753 | 0.761 | 0.719 | 0.802 | [0.749, 0.756] | 0.0 |
Summary statistics of the per-request values the histograms bin (30 equal-width bins over 0 to 1); raw values are not reproduced. Q1 to Q3 is the interquartile range.
The fix was redesigning the scoring from simple pass/fail (did the answer exceed a threshold?) to graduated measurement (how far above or below?). Quality checks that had been failing under the old system passed under the new one. The old measurements were hiding real differences.
The most important output of Round 3 was not a better configuration; it was a better way of measuring. When the evidence stops making sense, fix the measurement first.
That lesson applied to this study a second time, after publication. One of the five quality measures, a faithfulness check that asks whether each sentence of an answer is supported by the retrieved text, had read the wrong output of its scoring model for three rounds: it counted the model’s “neutral” verdict as support, which is why almost every answer scored near the maximum and why the measure was set aside in Round 3 as saturated. The study’s own ceiling check made the same assumption and confirmed the error instead of catching it. It was found in October 2026 only by re-computing the stored scores: the old rule reproduced all 15,139 of them exactly. Scored correctly, about 30% of the finalists’ sentences are supported by a single retrieved passage, and 798 of their 799 answers contain at least one sentence that is not. Unsupported is not the same as wrong, since the check compares one sentence with one passage and misses claims that draw on several. The correction changed several Round 1 and Round 2 findings, restated above and in Part II, and did not change the final selection, which gave that measure no weight from Round 3 on.
Round 4: Adding a Helpfulness Lens
With improved measurements, the top four configurations still scored within a narrow band on automated quality metrics. The scores were no longer artificially compressed, but the configurations genuinely produced answers of similar measurable quality.
Automated metrics measure how closely an answer tracks the retrieved text and a reference answer, and how closely the retrieved text matches the question; they do not check facts. They also do not directly measure whether a person would find it helpful. A technically correct answer that is poorly organized or unnecessarily terse might score well on automated metrics while frustrating an actual user.
To add a more user-centered signal, I deployed an independent AI model as a quality judge, a separate system with no knowledge of which configuration produced which answer. This judge evaluated all 1,598 answers on a 1-to-5 helpfulness scale: Does the answer directly address the question? Does it use the provided information effectively? Is it appropriately detailed? Would a domain expert find it useful?
Before scoring at scale, I calibrated the judge against human ratings on a sample of 50 answers. The correlation was statistically significant, and 88% of the judge’s scores fell within one point of the corresponding human rating. Agreement on the exact score was weaker: the weighted kappa was 0.47 (95% confidence interval 0.24 to 0.66, from the 50 labels) against a target of 0.6 that the study had set in advance, which the study itself records as a soft fail. I therefore use the judge’s ranking signal to compare configurations and do not treat its absolute scores as human ratings. This did not replace full-scale human evaluation, but it provided a supplementary signal for distinguishing between configurations that automated metrics could not separate.

Data plotted in Figure 4
| Configuration | n | Mean | 95% CI lower | 95% CI upper | Top-4 cluster |
|---|---|---|---|---|---|
| structured | 200 | 4.44 | 4.32 | 4.56 | No |
| maxtok_768 | 200 | 4.37 | 4.25 | 4.48 | Yes |
| temp_greedy | 200 | 4.31 | 4.20 | 4.42 | Yes |
| topk_7 | 199 | 4.28 | 4.17 | 4.39 | No |
| grounded_detailed | 200 | 4.27 | 4.12 | 4.41 | No |
| anchor_detailed | 199 | 4.25 | 4.13 | 4.36 | Yes |
| topk_3 | 200 | 4.23 | 4.10 | 4.35 | Yes |
| precise | 200 | 4.05 | 3.88 | 4.21 | No |
Sorted by mean as plotted; means use the figure's round-half-up labels. Teal marks the top-4 cluster from v7's automated testing.
Within the top four, the strongest configuration scored significantly higher than two of the other three; its lead over the third, the fully deterministic variant, was not statistically significant. The strongest configuration gave the AI more room to answer fully (50% more than the default), which was associated with more complete and thorough responses. This single change produced a small but statistically detectable gain in judged helpfulness. AI judges can favor longer answers, and I did not measure that bias here.
The Result
After 14,545 scored answers across four rounds, one configuration emerged as the preferred candidate under the selection process I followed. Every design choice traces back to a specific round of evidence, but three of the choices carried forward from Rounds 1 and 2 rest on scores the October 2026 faithfulness correction changed, and I have not re-tested them under the corrected, graduated protocol: the default against the detailed prompt template, window size 1 against 2, and re-ranking off against on. The template is a retained default whose Round 2 evidence reversed under the corrected scorer; the window-size choice became a tie; the re-ranking gap kept its size, on the pass/fail scoring of Rounds 1 and 2 that the judge never re-tested.
- Document splitting: Sentence-window retrieval with minimal surrounding context; on the corrected Round 2 scores the smallest window ties with the next size and leads on source fidelity (Round 1, Round 2; window size 1 against 2 not re-tested on the corrected scoring)
- Re-ranking: Disabled; the conventional second-pass filter lowered the quality scores on this content (Round 1 on source fidelity, not significantly; Round 2 on the pass/fail overall score, unchanged by the correction; not re-tested by the judge)
- Response instructions: A detailed template asking for thorough, well-sourced answers (retained default; its Round 2 evidence reversed under the corrected scorer)
- Response length: 50% more room to write than the default, associated with more helpful answers (Round 4)
- Retrieved context: The 5 most relevant document sections per question (Round 2)
This configuration achieved:
- 4.37 out of 5 judged helpfulness, up from 4.25 for the starting configuration (+0.12, a small but statistically detectable difference)
- Completion of all 200 of its Round 3 evaluation requests. Across the study, 14,545 of 14,550 planned evaluation requests completed, most failed attempts having been resubmitted; the 5 requests that never completed were excluded, and all 1,598 judge scores were usable (counts per round are in Part II, Section 2.1)
- The only configuration to rank in the top 2 on both automated quality metrics and AI-judged helpfulness
Every configuration was selected and scored on the same pool of benchmark questions, so the reported scores are in-sample and were not confirmed on held-out questions.
What This Means for a Deployment
The specific settings above were selected on this benchmark and model. Different content, models, or deployment contexts may shift the optimal configuration; earlier testing on single-domain medical and technical corpora produced different optimal settings, including cases where re-ranking helped. What follows are the broader patterns.
The re-ranking step, a commonly recommended component, would have shipped by default. Testing showed it lowered the quality scores on this content, and two successive rounds on overlapping question sets pointed the same way. That is the kind of mistake that structured evaluation catches before production.
The scoring system appeared to show four equivalent configurations. Investigation revealed it was failing to measure real differences. Without the audit, the final recommendation would have been arbitrary.
Every component in the final configuration was put through a test. Components that failed it, larger context windows and the default response limit, were removed or changed, and one that was kept, the detailed template, lost its Round 2 evidence when the faithfulness scores were corrected. The result is a simpler system, because complexity that did not improve answers was cut.
The four-round funnel itself (select, optimize, audit, validate) transfers to other pipelines. It is designed to produce recommendations specific to the target content, not to assume one answer fits all.
What this does not show
- A universally best RAG configuration; the result is a preferred candidate for one public dataset.
- Held-out confirmation; every configuration was selected and scored on the same question set.
- That the LLM judge matches human judgment; its weighted kappa of 0.47 missed the 0.6 target the study set.
- That reranking hurts in general; it helped in two earlier internal test rounds on other public datasets.
- Factual correctness; the automated metrics measure similarity to the question and the retrieved text, not truth.
- Single-user latency; the finalists’ latencies (about 24 to 29 seconds end to end) were measured with up to eight requests in flight on one consumer GPU.
The full discussion is in the limitations section of Part II.
Part II
Technical Detail
The narrative above intentionally simplified the underlying methodology. The following section contains the complete statistical framework, version-by-version analysis, and evidence supporting every finding and recommendation in Part I.
Dataset: ExpertQA | Model: Nemotron-Nano-9B-v2-NVFP4 | Embedding: Qwen3-Embedding-0.6B
Populations and instruments
Every population and instrument behind the figures in this study, with its size and what it was used for.
| n | Role | Date |
|---|---|---|
| 203 questions | ExpertQA test split as packaged in RAGBench: multi-domain, expert-sourced questions, the pool every sample was drawn from (Section 2.1). | Not recorded |
| 200 questions | Stratified sample (seed 42) answered by every configuration in v6 and v7 and judged in v8; contains the 150 v5 questions (Section 2.1). These are the unique questions behind every answer count below. Files: results/v6/v6_session1_expertqa_main.jsonl (800 rows, 200 questions by 4 window sizes) and results/v7/v7_session1_expertqa_{run}.jsonl. | Not recorded |
| 150 questions | v5 stratified sample, a subset of the 200 (Section 2.1). | Not recorded |
| 40 configurations | The 4 techniques compared in v5, the 28 window-by-setting combinations of v6 and the 8 generation configurations of v7. Not counted: v5’s 45 one-parameter sweep cells around the four techniques, so 85 cells were run in all (49 on 150 questions, 28 and 8 on 200); some settings recur across rounds (window sizes 1 and 3 were run in both v5 and v6), and no de-duplicated cell count was established (Section 7). | Not recorded |
| 14,545 answers | The headline count: benchmark answers completed and scored by the automated metrics in v5 to v7, of 14,550 planned (7,350 + 5,600 + 1,600; Section 2.1, request accounting). v8 added no answers; it rated 1,598 of these. Files: the 21 main and sweep result files, results/v5/v5_session1_expertqa_*.jsonl (9), results/v6/v6_session1_expertqa_*.jsonl (4) and results/v7/v7_session1_expertqa_{run}.jsonl (8). NLI faithfulness re-scored for all of them with the entailment label in October 2026 (Section 2.2). | 2026-10-16 (NLI re-score; run dates not recorded) |
| 15,139 stored score rows | Every completed v5 to v7 answer with a stored NLI score, all reproduced and re-scored in October 2026: the 14,545 above plus 594 pilot-run answers (193 of 195 in the v5 pilot stages A and B, 195 of 195 in the v6 pilots, 206 of 210 in the v7 pilots) that the published results exclude. Files: results/rag_nli_rescore/summary.json (row_inventory) and the 40 per-row files results/rag_nli_rescore/rows/*_rescored.csv, keyed by request_id. | 2026-10-16 |
| 1,598 answers | The v7 answers (8 configurations on 200 questions, 2 requests failed), re-scored on the continuous metrics and rated once each by the LLM judge in v8, so 1,598 judge scores (Sections 5 and 6). Files: results/v7/v7_reevaluation/{run}_reevaluated.csv and results/v8/v8_judge/{run}_judged.csv. | Not recorded |
| 799 answers | The four finalists’ v7 answers (12,947 sentences against 3,586 stored retrieved chunks), re-scored for NLI faithfulness with the entailment label: about 0.30 of sentences supported, 798 answers with at least one unsupported sentence (Section 9, Limitations 10 and 18). Files: results/rag_nli_rescore/rows/finalists_sentences.csv and rows/{anchor_detailed, maxtok_768, temp_greedy, topk_3}_judged_rescored.csv. | 2026-10-16 |
| 50 answers | Human-labeled calibration set for the LLM judge, labeled by one rater, the study author; weighted kappa 0.469 against a 0.6 target (Section 9). | Not recorded |
1. Executive Summary
Four iterations of RAG benchmark optimization (v5–v8) were conducted on the ExpertQA dataset using a 6-step retrieval-augmented generation pipeline powered by Nemotron-Nano-9B-v2-NVFP4 via vLLM. The study scored 14,545 benchmark answers over 5 days, 1,598 of which were also rated by an LLM judge, progressively narrowing the configuration search space through a decision funnel: technique selection (v5), parameter optimization (v6), measurement reform (v7), and helpfulness assessment (v8). Each version answered a specific question, and its findings constrained the next iteration’s search space. The final recommendation, provisional in the respect stated at the end of this section, is maxtok_768, a sentence_window_1 configuration with max_tokens=768, temperature=0.1, top_k=5, reranking disabled, and a detailed prompt template, which ranks in the top 2 on both automated metric quality (composite rank #2, score 0.5823) and LLM-judged helpfulness (answer relevance rank #2, score 4.365/5.0).
Table T1: Version Overview
| Version | Question Asked | Requests | Configs | Duration | Key Outcome |
|---|---|---|---|---|---|
| v5 | Which chunking technique is best? | 7,350 | 4 techniques + 8 sweeps | ~6.3h | sentence_window leads on composite; all 4 techniques retained as viable |
| v6 | Which window size and parameters? | 5,597 | 4 window sizes + 3 sweeps | ~9.2h | Window size 1 composite 0.659 with corrected NLI, tied with window size 2 (0.769, rank #1, as published); reranking off +0.041 composite at window size 1; construct validity 5 of 6 (6 of 6 as published) |
| v7 | Are binary metrics hiding differences? | 1,598 | 8 generation configs | ~3h 05min generation; re-scoring 117.5 s | Yes: ceilings at 22.8/86.7/80.7% eliminated; top-4 plateau at 0.579–0.583 |
| v8 | Can AR break the top-4 tie? | 1,598 | 8 generation configs | ~16min | Yes: Friedman p=0.006; maxtok_768 wins (AR 4.365) |
Table T2: Decision Funnel
| Version | Search Space | Decision | Carried Forward |
|---|---|---|---|
| v5 | 4 techniques + 8 sweeps (49 cells) | sentence_window best coverage-fidelity tradeoff | Technique = sentence_window |
| v6 | 4 window sizes + 3 sweeps (28 cells) | sw_1 + reranking=false = 0.700 composite with corrected NLI (0.810 as published) | Window = 1, reranking = false |
| v7 | 8 generation configs | Binary metrics plateau; continuous reformulation | Continuous metrics; top-4 cluster identified |
| v8 | Top-4 cluster | maxtok_768 > anchor_detailed (d=0.221), > topk_3 (d=0.218) | maxtok_768 = preferred candidate |
Final recommendation: The maxtok_768 configuration is the preferred candidate under the study’s selection process, ranking in the top 2 on both the automated composite and LLM-judged answer relevance; three decisions carried forward from v5 and v6 (prompt template, window size, reranking) were not re-tested after the October 2026 correction. See Section 8 for the complete configuration card.
2. Methodology
2.1 Pipeline Architecture
All four versions share a common 6-step RAG pipeline:
- Validate Input: schema checks on question + ground truth
- Retrieve: dense retrieval via ChromaDB (Qwen3-Embedding-0.6B, 1024-dim) with optional BM25 hybrid fusion
- Rerank: cross-encoder re-ranking (bge-reranker-v2-m3) with configurable enable/disable
- Generate: LLM answer generation via Nemotron-Nano-9B-v2-NVFP4 served by vLLM on an RTX 4090; the NVFP4 weights are served weight-only through vLLM’s Marlin kernel, since the Ada-generation GPU has no native FP4 compute
- Evaluate: automated metrics computed against ground-truth answers and retrieved contexts
- Compare: pairwise statistical analysis across configurations
Dataset: ExpertQA (Malaviya et al., 2023), using the test split as packaged in RAGBench (Friel, Belyi and Sanyal, 2024): 203 multi-domain, expert-sourced questions (medicine, law, science, technology, etc.); see References. v5 sampled 150 questions, stratified by the dataset’s adherence label (seed 42). v6 sampled 200 the same way, and v7 and v8 reused those 200. With the same seed and procedure, the 150 v5 questions are a subset of the 200; matching each question’s RAGBench labels across the v5 and v6 result files confirms all 150. Question IDs are positions within each sample, so v5 IDs 0–69 match v6 IDs 0–69 but v5 IDs 70–149 are v6 IDs 94–173. Within each version, every configuration answered the same questions, so comparisons are paired.
Request accounting: A request is one question answered by one configuration (one judge call in v8). A failed attempt is a submission that returned an error (a processing error, or a capacity time-out after 300 s in the queue) or that the client stopped waiting for. Failed requests were resubmitted in v5 and partly in v6; requests that never completed were excluded from analysis. Completion is completed requests divided by planned requests.
| Version | Planned | Attempts | Failed Attempts | Later Completed | Completed | Excluded |
|---|---|---|---|---|---|---|
| v5 | 7,350 | 7,421 | 71 | 71 | 7,350 (100%) | 0 |
| v6 | 5,600 | 5,602 | 5 | 2 | 5,597 (99.9%) | 3 |
| v7 | 1,600 | 1,600 | 2 | 0 | 1,598 (99.9%) | 2 |
| v5–v7 total | 14,550 | 14,623 | 78 (0.5%) | 73 | 14,545 (99.97%) | 5 |
| v8 (judge) | 1,598 | 1,598 | 0 | n/a | 1,598 (100%) | 0 |
Infrastructure: AI Manager service orchestrating Docker containers. Single Nemotron-9B NVFP4 instance (~12.2 GiB model, ~23 GiB peak VRAM). PostgreSQL + Redis backing stores. All runs on a single RTX 4090 (24 GiB).
Embedding model: Qwen3-Embedding-0.6B with asymmetric query/document encoding. Chunked documents stored in ChromaDB collections with per-technique indexing.
2.2 Evaluation Metrics
Table T3: Metric Definitions
| Metric | Binary Formulation (v5–v6) | Continuous Formulation (v7–v8) | Range |
|---|---|---|---|
| Adherence | Fraction of answer sentences whose closest retrieved chunk has cosine similarity ≥ 0.50 | Mean, over answer sentences, of the highest cosine similarity to any retrieved chunk | [0, 1] |
| Relevance | Fraction of retrieved chunks with question-chunk cosine similarity ≥ 0.55, scored with the retrieval embedding model | Mean question-chunk cosine similarity, scored with an independent model (all-MiniLM-L6-v2) | [0, 1] |
| Utilization | Fraction of retrieved chunks whose closest answer sentence has cosine similarity ≥ 0.60 | Mean, over retrieved chunks, of the highest cosine similarity to any answer sentence | [0, 1] |
| Completeness | ROUGE-L recall against the reference answer (not thresholded) | Unchanged (ROUGE-L recall) | [0, 1] |
| NLI Faithfulness | Fraction of answer sentences entailed by at least one retrieved chunk (cross-encoder/nli-deberta-v3-large; corrected October 2026: the stored v5 to v7 values had counted the neutral label, see below) | (computed; given zero weight from v7) | [0, 1] |
| Answer Relevance | (not used) | LLM-judged helpfulness score (Qwen3.5-9B, 1–5 Likert) | [1, 5] |
The metric names in Table T3 follow RAGBench (Friel, Belyi and Sanyal, 2024), but the computations are custom similarity-based proxies: embedding cosine similarity for adherence, relevance and utilization, and ROUGE-L recall for completeness, not RAGBench’s own labeling method. They measure how closely an answer tracks the retrieved text and the reference, not whether its claims are correct (Limitation 10).
NLI faithfulness was computed in every round; from v7 it carried zero weight in the re-evaluation composite after an apparent ceiling (88.8% of v5 answers at the maximum score). That ceiling was a property of the scoring, not the data. The scorer counted a sentence as entailed when the label with the highest logit had index 2; in cross-encoder/nli-deberta-v3-large, index 2 is neutral and entailment is index 1, so every stored score was the share of answer sentences that some retrieved chunk was neutral toward, which is why the scores sat near 1.0. The error was found in October 2026 when the stored scores were re-computed: re-running the stored rule reproduced all 15,139 completed v5 to v7 scores exactly, and re-scoring with the entailment label (a sentence is supported when its highest entailment probability against any retrieved chunk is at least 0.5) put the ceiling at 23 of 600 v5 answers (3.8%) and 72 of 800 v6 answers (9.0%). On the four finalists, 0.30 of answer sentences are supported (799 answers, 12,947 sentences against 3,586 stored chunks) and 798 of the 799 answers contain at least one unsupported sentence. Unsupported is not the same as false: the check compares one sentence with one chunk, so it misses claims that combine chunks and penalizes paraphrase and connective sentences. The NLI columns, the v5 and v6 composites and Figures 1, 2, 5, 7, 8 and 10 to 13 carry the corrected values, and the binary spread in the subtitle of Figure 14 is recomputed; the final selection is unaffected because NLI carried zero weight from v7. Answer Relevance was added in v8 as a holistic helpfulness measure orthogonal to component metrics.
2.3 Composite Score Design
The composite score evolved across versions as metric quality findings accumulated:
Table T4: Composite Weight Evolution
| Metric | v5–v6 Weights | v7 Weights (original) | v7 Weights (re-evaluation) | v8 |
|---|---|---|---|---|
| Adherence | 0.30 | 0.30 | 0.35 | 0.35 |
| Relevance | 0.25 | 0.25 | 0.25 | 0.25 |
| NLI Faithfulness | 0.20 | 0.20 | 0 (zero weight) | 0 |
| Utilization | 0.15 | 0.15 | 0.20 | 0.20 |
| Completeness | 0.10 | 0.10 | 0.20 | 0.20 |
Key changes:
- v7 re-evaluation gave NLI zero weight (apparent ceiling) and redistributed its 0.20 weight to adherence (+0.05), utilization (+0.05) and completeness (+0.10)
- On the 1,598 re-scored v7 responses, the re-evaluation weighting (no NLI) separated the eight configurations more than the original weights did (one-way ANOVA F=6.81 vs F=2.19 with the corrected NLI scores, same continuous metrics; F=3.80 as published). It was not the most separating scheme compared: equal weights gave F=12.28. The same weights with NLI kept at 0.10 gave F=5.40 with corrected NLI (7.63 as published), below the no-NLI scheme. The weights were fixed after the v7 results had been examined; see Limitation 17
- The v7 design analysis reports a different pair, F=4.01 → 6.54 with the corrected NLI scores (4.46 → 6.54 as published). It compares the original binary composite (all 1,600 rows, with the 2 failed requests scored as 0) with the re-evaluation composite on the 198 questions answered by all eight configurations, so it mixes the metric change with the weight change
2.4 Statistical Framework
The pairwise tests changed after v6, when the v7 re-evaluation switched to paired analysis:
- Pairwise tests: v5–v6 used Welch’s t-tests that treat configurations as independent groups. The v7 re-evaluation used paired t-tests and v8 used Wilcoxon signed-rank tests, both on complete pairs only: the questions both configurations answered (198 to 200 per pair, because anchor_detailed and topk_7 each lost one request in v7)
- Multiple comparison correction: Bonferroni in v5–v6; Holm step-down in the v7 re-evaluation and v8
- Effect sizes: Cohen’s d. v5–v6 report the between-group form (difference in means divided by the root mean square of the two standard deviations); v7 and v8 report the paired form, dz (mean paired difference divided by the standard deviation of the differences). Benchmarks: |d| < 0.2 = Negligible, 0.2–0.5 = Small, 0.5–0.8 = Medium, > 0.8 = Large
- Omnibus tests: Friedman test (non-parametric repeated measures) for rank-based group differences, on the questions answered by every compared configuration (198 for all eight v7 configurations, 199 for the v8 top four); one-way ANOVA as parametric complement
- Confidence intervals: t-based 95% intervals for configuration means (v5–v6); 10,000-resample percentile bootstrap for paired mean differences (v7–v8)
- Bayesian evidence: BIC-based Wagenmakers (2007) Bayes factors
- Construct validity: Pre-specified directional predictions tested as strict (must hold) or informational (expected but not required)
- Discrimination power: ANOVA F-statistics and eta-squared (η²) for between-technique variance
- Ceiling/floor analysis: Percentage of observations at metric bounds; >50% classified as “Unacceptable”
Note on effect sizes: In v7 and v8, Cohen’s d is computed on raw paired score differences (not rank-transformed). The paired and between-group forms differ whenever scores are correlated across configurations, so v5–v6 and v7–v8 effect sizes are not directly comparable. For the two significant v8 comparisons the between-group d is 0.14 and 0.16, against paired d of 0.221 and 0.218 (Section 6). While rank-biserial correlation would be the natural nonparametric companion for Wilcoxon signed-rank tests, Cohen’s d was chosen for interpretability and comparability with power analysis conventions. Kendall’s W was not reported alongside Friedman tests but would be a useful addition in future iterations.
3. v5: Technique Selection
Question: Which chunking technique produces the best RAG responses on ExpertQA?
Design: 4 techniques (semantic, sentence_400, recursive_400, sentence_window_3) evaluated at default parameters with 150 samples each (600 main comparisons), plus 8 parameter sweeps (chunk_size, prompt_template, final_top_k, similarity_threshold, reranking, retrieval_method, adherence_support, chunk_size for sentence_window). All 7,350 planned requests (49 cells × 150 questions) completed. 71 of 7,421 attempts failed (59 processing or capacity errors, 12 client time-outs) and were resubmitted until they completed; the 99.0% success rate in the v5 analysis report is completions per attempt (7,350 of 7,421). The raw log also holds 300 submissions for sentence_window_200 and sentence_window_600 that all failed within two minutes; that part of the chunk-size sweep was replaced by the sentence-window sweep (window sizes 1 and 5), and the 300 are not counted. Runtime ~6.3 hours.
Table T5: Technique Ranking (v5, corrected NLI)
| Adherence Rank | Technique | Adherence | Relevance | Utilization | NLI Faith. | Completeness | Best At |
|---|---|---|---|---|---|---|---|
| 1 | semantic | 0.733 | 0.589 | 0.646 | 0.351 | 0.256 | Adherence |
| 2 | sentence_window_3 | 0.688 | 0.808 | 0.836 | 0.408 | 0.235 | Coverage, NLI |
| 3 | sentence_400 | 0.674 | 0.571 | 0.573 | 0.336 | 0.261 | Completeness |
| 4 | recursive_400 | 0.634 | 0.524 | 0.553 | 0.313 | 0.259 | none |
The results revealed a fundamental fidelity-coverage tradeoff: semantic led on adherence (0.733), while sentence_window_3 led on relevance (0.808), utilization (0.836) and, once the NLI scores were re-scored with the entailment label, on NLI faithfulness (0.408 vs 0.351 for semantic, d=0.22, Small). The coverage gap was substantial, with Medium between-group effect sizes for semantic vs sentence_window_3: d=0.642 to 0.645 on relevance and utilization. As published, semantic had appeared to lead NLI faithfulness at 0.994 with d=0.726; those scores counted the model’s neutral label as entailment (Section 2.2), and the NLI column of Table T5 now carries the corrected values (150 answers per technique).
Table T5 is ordered by adherence, v5’s primary ranking metric. On the balanced composite (Section 2.3, v5–v6 weights, corrected NLI), the order changes: sentence_window_3 0.639, semantic 0.560, sentence_400 0.524, recursive_400 0.493 (as published 0.739, 0.688, 0.652 and 0.628, the same order). The composite ordering supports carrying sentence_window forward.
Table T6: Key Sweep Findings (v5)
| Parameter | Finding | Effect |
|---|---|---|
| Reranking | Enabled 0.682 adherence vs disabled 0.701 | Lower with reranking on ExpertQA; adherence difference not significant (p=0.166, Figure 6) |
| Hybrid retrieval | Dense: adh 0.682, NLI 0.352; Hybrid: adh 0.602, NLI 0.289 (600 answers each, corrected NLI) | Hybrid lowers both fidelity scores: adherence −0.080, NLI −0.063 (d=0.23, Small; published as −0.309 under the mis-read label) |
| Chunk size (sentence) | 200 > 400 > 600 on adherence (0.722 > 0.674 > 0.659) | Smaller consistently better |
| Window size (sw) | sw_1: adh 0.753, NLI 0.426 (corrected); sw_3: rel 0.808, util 0.836 | Window=1 for adherence, =3 for coverage |
| Top_k | 3→15: relevance 0.688→0.468; completeness 0.243→0.262 | top_k=5 is balanced |
| Prompt template | Default > detailed > chain-of-thought on adherence for all 4 techniques (Figure 9) | Detailed not favored in v5; adopted after v6 on an apparent composite gain that the NLI correction removed (Section 4) |
| Similarity threshold | 0.40→0.55: adherence 0.829→0.550 | Impactful but tradeoff with recall |

Data plotted in Figure 1
| Technique | Adherence | NLI faithfulness | Relevance | Utilization | Completeness |
|---|---|---|---|---|---|
| recursive_400 | 0.634 | 0.313 | 0.524 | 0.553 | 0.259 |
| semantic | 0.733 | 0.351 | 0.589 | 0.646 | 0.256 |
| sentence_400 | 0.674 | 0.336 | 0.571 | 0.573 | 0.261 |
| sentence_window_3 | 0.688 | 0.408 | 0.808 | 0.836 | 0.235 |
Cell = mean of per-response scores, as printed in the figure. NLI faithfulness re-scored 2026-10-16: a sentence counts as supported when its highest entailment probability against a retrieved chunk is at least 0.5. The scores first published counted the neutral label (index 2) as entailment.

Data plotted in Figure 5
| Metric | Dense | Hybrid | Δ (hybrid − dense) | Welch t | p |
|---|---|---|---|---|---|
| Adherence | 0.682 | 0.602 | −0.080 | 5.34 | 1.1e-7 |
| NLI faithfulness | 0.352 | 0.289 | −0.063 | 4.06 | 5.2e-5 |
| Relevance | 0.623 | 0.738 | +0.115 | −4.91 | 1.0e-6 |
| Utilization | 0.652 | 0.878 | +0.226 | −12.03 | 1.4e-31 |
| Completeness | 0.253 | 0.211 | −0.042 | 6.69 | 3.4e-11 |
Means of per-response scores; t is dense minus hybrid (positive = dense higher). NLI faithfulness re-scored 2026-10-16: a sentence counts as supported when its highest entailment probability against a retrieved chunk is at least 0.5. The scores first published counted the neutral label (index 2) as entailment.

Data plotted in Figure 6
| Metric | No reranking | With reranking | Δ (with − without) | p (Welch) |
|---|---|---|---|---|
| Adherence | 0.701 | 0.682 | −0.019 | 0.166 |
| Relevance | 0.718 | 0.623 | −0.095 | — |
Relevance is informational in the source (construct-validity test 4) and has no significance test.

Data plotted in Figure 7
| Metric | F | p | Significant (p < 0.01) |
|---|---|---|---|
| Utilization | 26.76 | 3.0e-16 | Yes |
| Relevance | 19.03 | 8.5e-12 | Yes |
| Adherence | 4.21 | 0.006 | Yes |
| NLI faithfulness | 3.50 | 0.015 | No |
| Completeness | 1.77 | 0.152 | No |
Sorted by F as plotted. NLI faithfulness re-scored 2026-10-16: a sentence counts as supported when its highest entailment probability against a retrieved chunk is at least 0.5. The scores first published counted the neutral label (index 2) as entailment.

Data plotted in Figure 8
| Technique | n | Mean | Median | Q1 | Q3 | 95% CI of mean | Responses at 1.0 |
|---|---|---|---|---|---|---|---|
| recursive_400 | 150 | 0.313 | 0.250 | 0.101 | 0.500 | [0.271, 0.356] | 6 |
| semantic | 150 | 0.351 | 0.333 | 0.170 | 0.500 | [0.313, 0.389] | 2 |
| sentence_400 | 150 | 0.336 | 0.273 | 0.152 | 0.500 | [0.294, 0.379] | 7 |
| sentence_window_3 | 150 | 0.408 | 0.333 | 0.200 | 0.667 | [0.364, 0.455] | 8 |
Summary statistics of the per-response values the strip plot shows; raw values are not reproduced. Q1 to Q3 is the interquartile range. Teal marks sentence_window_3, the technique carried forward to v6. NLI faithfulness re-scored 2026-10-16: a sentence counts as supported when its highest entailment probability against a retrieved chunk is at least 0.5. The scores first published counted the neutral label (index 2) as entailment.

Data plotted in Figure 9
| Prompt template | Technique | n | Mean adherence | 95% CI lower | 95% CI upper |
|---|---|---|---|---|---|
| Chain of thought | sentence_window_3 | 150 | 0.614 | 0.590 | 0.638 |
| Chain of thought | recursive_400 | 150 | 0.571 | 0.546 | 0.596 |
| Chain of thought | semantic | 150 | 0.641 | 0.617 | 0.665 |
| Chain of thought | sentence_400 | 150 | 0.617 | 0.593 | 0.640 |
| Default | sentence_window_3 | 150 | 0.688 | 0.646 | 0.729 |
| Default | recursive_400 | 150 | 0.634 | 0.594 | 0.674 |
| Default | semantic | 150 | 0.732 | 0.697 | 0.768 |
| Default | sentence_400 | 150 | 0.674 | 0.635 | 0.712 |
| Detailed | sentence_window_3 | 150 | 0.663 | 0.632 | 0.693 |
| Detailed | recursive_400 | 150 | 0.600 | 0.574 | 0.625 |
| Detailed | semantic | 150 | 0.695 | 0.673 | 0.717 |
| Detailed | sentence_400 | 150 | 0.651 | 0.627 | 0.676 |
Construct Validity (v5): 4/5 Strict PASS
| Test | Prediction | Result | Status |
|---|---|---|---|
| top_k increases → relevance decreases | Monotonic decrease | 0.688 → 0.468 | PASS |
| top_k increases → completeness increases | Monotonic increase | 0.243 → 0.262 | PASS |
| Reranking improves adherence | Enabled > disabled | 0.682 < 0.701 | FAIL |
| Smaller chunks → higher relevance | 200 > 400 > 600 | 0.570 > 0.548 > 0.527 | PASS |
| Similarity threshold → adherence decreases | Monotonic decrease | 0.829 → 0.550 | PASS |
Test 3 failed because reranking hurts on ExpertQA, unlike techqa/covidqa. This was an important dataset-specific finding carried forward.
Metric Quality Alerts
- NLI Faithfulness: as published, an 88.8% ceiling (533 of 600 answers at 1.0) and a recommended drop from v6; re-scored with the entailment label, 23 of 600 answers (3.8%) at 1.0 and a weak discriminator (ANOVA F=3.50, p=0.015, eta-squared=0.017; not significant at the Bonferroni 0.01 level)
- Completeness: ANOVA F=1.77, p=0.15: zero discriminative power; eta-squared=0.009 (negligible)
- Relevance: 37.3% ceiling (sentence_window_3 at 67.3%): marginal
Decisions Carried Forward
- Technique = sentence_window: selected over semantic (adherence leader, 0.733) because sentence_window provides the best coverage-fidelity balance, is fastest (13.1s vs 14.8s mean), has the lowest rate of failed attempts (0.3% vs 0.8%), and its window_size parameter enables further optimization in v6. All 4 techniques exceeded the 0.60 adherence threshold and were retained as viable candidates; the v6 carry-forward decision was which to prioritize.
- Investigate window_size=1: highest adherence (0.753) among all configs (its published NLI lead, 0.982, was the mis-read label; corrected, 0.426, behind sentence_window_3 at top_k 10 and 15)
- Reranking = investigate further: counterintuitive negative effect needs confirmation
- Flag completeness and NLI as non-discriminating: neither metric separates the chunking techniques at the Bonferroni 0.01 level: completeness by ANOVA (F=1.77), and NLI, as published, because of its apparent ceiling; after correction NLI reaches only F=3.50 (p=0.015), so the flag stands for a different reason. Reassess after measurement reform
- Dense retrieval only: hybrid lowered adherence by 0.080 and corrected NLI faithfulness by 0.063 (600 answers each)
4. v6: Window Size and Parameter Optimization
Question: Which sentence_window size and parameter combination maximizes composite quality?
Design: 4 window sizes (1, 2, 3, 4) at 200 samples each, plus 3 parameter sweeps (final_top_k, reranking_enabled, prompt_template): 28 window-by-setting combinations in total (each window size at the defaults, top_k 3, 7 and 10, the chain-of-thought and detailed templates, and reranking off). 5,597 of 5,600 planned requests completed (99.9%). Of 5,602 attempts, 5 failed with capacity time-outs; 2 were resubmitted and completed, and 3 were excluded. The results file also holds 15 client time-out records for requests that completed later under the same request ID; counting those as attempts gives the 5,617 total and 99.6% rate in the v6 analysis report. Runtime ~9.2 hours across 4 runs (1 main + 3 sweeps).
Table T7: Window Size Ranking (v6, corrected NLI)
| Rank | Window Size | Composite | Adherence | Relevance | NLI Faith. | Utilization | Completeness |
|---|---|---|---|---|---|---|---|
| 1= | sw_1 | 0.659 | 0.766 | 0.784 | 0.432 | 0.818 | 0.244 |
| 1= | sw_2 | 0.660 | 0.739 | 0.803 | 0.442 | 0.837 | 0.241 |
| 3 | sw_3 | 0.650 | 0.691 | 0.817 | 0.425 | 0.868 | 0.234 |
| 4 | sw_4 | 0.633 | 0.662 | 0.807 | 0.392 | 0.872 | 0.230 |
The composite and NLI columns carry the October 2026 re-score with the entailment label (Section 2.2); 200 answers per window size. As published, the NLI scores counted the neutral label and read 0.979, 0.932, 0.902 and 0.837, giving composites of 0.769, 0.759, 0.746 and 0.722, on which the v6 decisions were made.
At the time, window size 1 won the composite ranking (0.769 as published) on what looked like leading fidelity metrics, adherence and NLI. On the corrected composite, window sizes 1 and 2 tie (0.659 and 0.660) and window size 1 leads on adherence only; the corrected NLI spread across the four window sizes is 0.049, not the 0.141 published. The fidelity-coverage tradeoff from v5 repeated at finer granularity: sw_1 led on adherence (+0.104 vs sw_4, between-group d=0.42) while sw_3/sw_4 led on utilization (+0.054, not significant).
Table T8: Best Observed Configurations (v6, corrected NLI)
| Configuration | Composite | Adherence | Relevance | NLI Faith. | Utilization | CI (95%) |
|---|---|---|---|---|---|---|
| sw_1 + reranking=false | 0.700 | 0.785 | 0.912 | 0.429 | 0.849 | [0.679, 0.722] |
| sw_1 + template=detailed | 0.654 | 0.795 | 0.830 | 0.290 | 0.829 | n/a |
| sw_1 + default | 0.659 | 0.766 | 0.784 | 0.432 | 0.818 | n/a |
| sw_1 + reranking=true | 0.659 | 0.766 | 0.784 | 0.432 | 0.818 | n/a |
Rows as ranked in v6, 197 to 200 answers each; composite and NLI re-scored with the entailment label (as published: 0.810 [0.792, 0.827], 0.793, 0.769 and 0.769, with NLI 0.977, 0.981, 0.979 and 0.979). After the correction, window size 2 with reranking off scores 0.703, nominally above the 0.700 of the first row; it is not among the rows above, which were the leading cells as published.
Disabling reranking improved composite by +0.041 at window size 1 (0.659 to 0.700, unchanged by the NLI correction), in the same direction as v5’s counterintuitive finding. The effect was driven primarily by relevance (0.784 → 0.912, +0.128) and utilization (0.818 → 0.849). A plausible mechanism is that the cross-encoder filtered out chunks that were topically relevant but not the closest match; on ExpertQA’s diverse multi-domain content, this filtering may have been counterproductive.
Sweep Details
Top_k sweep (k = 3, 5, 7, 10): On the corrected composite averaged over the four window sizes (800 answers per k), the four values are flat across k=3 to 10 (0.645 to 0.653). At window size 1 the values were 0.659 (k=5), 0.665 (k=7), 0.644 (k=10) and 0.665 (k=3). As published, k=3 had appeared lower (0.733 against 0.748 to 0.756); that gap was the mis-read NLI label. Decision: k=5 retained (default, balanced).
Reranking sweep: Disabled scored higher at every window size (+0.028 to +0.042 composite by window size; +0.041 at window size 1, +0.037 averaged over window sizes, 800 answers each way). This result is unchanged by the NLI correction: corrected NLI is 0.423 with reranking and 0.427 without. No significance test was run on this comparison (Figure 12). Bayesian evidence for the overall window-size adherence gradient: BF10=308.6 (extreme) for sw_1 vs sw_4.
Template sweep: On the corrected composite the detailed template scores 0.005 below the default at window size 1 (0.654 vs 0.659; 0.003 to 0.014 lower across the four window sizes, 197 to 200 answers per cell), and its corrected NLI faithfulness is 0.290 against 0.432 for the default. As published, under the mis-read label, it had appeared +0.024 ahead at window size 1 (+0.023 to +0.034 across window sizes), which is why it was adopted; the v6 evidence no longer favors it. Chain-of-thought was comparable on composite but slower: mean generation time 26.9 s vs 11.1 s for the default template (about 2.4×). The adopted detailed template averaged 25.4 s.

Data plotted in Figure 2
| Window size | n | Mean composite | 95% CI lower | 95% CI upper |
|---|---|---|---|---|
| 1 | 200 | 0.659 | 0.635 | 0.684 |
| 2 | 200 | 0.660 | 0.634 | 0.686 |
| 3 | 200 | 0.650 | 0.624 | 0.676 |
| 4 | 200 | 0.633 | 0.604 | 0.661 |
Composite recomputed with the corrected NLI term (weights 0.30 / 0.25 / 0.20 / 0.15 / 0.10). NLI faithfulness re-scored 2026-10-16: a sentence counts as supported when its highest entailment probability against a retrieved chunk is at least 0.5. The scores first published counted the neutral label (index 2) as entailment.

Data plotted in Figure 10
| Window size | Adherence | Relevance | NLI faithfulness | Utilization | Completeness |
|---|---|---|---|---|---|
| 1 | 0.766 | 0.784 | 0.432 | 0.818 | 0.244 |
| 2 | 0.739 | 0.803 | 0.442 | 0.837 | 0.241 |
| 3 | 0.691 | 0.817 | 0.425 | 0.868 | 0.234 |
| 4 | 0.662 | 0.807 | 0.392 | 0.872 | 0.230 |
Bar heights as printed in the five panels. NLI faithfulness re-scored 2026-10-16: a sentence counts as supported when its highest entailment probability against a retrieved chunk is at least 0.5. The scores first published counted the neutral label (index 2) as entailment.

Data plotted in Figure 11
| Window size | top_k 3 | top_k 5 | top_k 7 | top_k 10 |
|---|---|---|---|---|
| 1 | 0.665 | 0.659 | 0.665 | 0.644 |
| 2 | 0.662 | 0.660 | 0.658 | 0.653 |
| 3 | 0.651 | 0.650 | 0.653 | 0.653 |
| 4 | 0.635 | 0.633 | 0.637 | 0.631 |
Cell = mean composite as printed in the figure. NLI faithfulness re-scored 2026-10-16: a sentence counts as supported when its highest entailment probability against a retrieved chunk is at least 0.5. The scores first published counted the neutral label (index 2) as entailment.

Data plotted in Figure 12
| Metric | No reranking | With reranking | Δ (with − without) |
|---|---|---|---|
| Composite score | 0.688 | 0.651 | −0.037 |
| Relevance | 0.906 | 0.803 | −0.103 |
Composite recomputed with the corrected NLI term; relevance is unaffected. NLI faithfulness re-scored 2026-10-16: a sentence counts as supported when its highest entailment probability against a retrieved chunk is at least 0.5. The scores first published counted the neutral label (index 2) as entailment.

Data plotted in Figure 13
| Window-size pair | Adherence | NLI faithfulness | Relevance | Utilization | Completeness | Composite score |
|---|---|---|---|---|---|---|
| 1 vs 2 | −1.00 | −1.28 | −1.23 | −1.19 | −1.29 | −1.30 |
| 1 vs 3 | 0.89 | −1.29 | −1.08 | −0.50 | −1.12 | −1.25 |
| 1 vs 4 | 2.49 | −0.89 | −1.20 | −0.43 | −0.94 | −0.88 |
| 2 vs 3 | −0.44 | −1.23 | −1.26 | −1.01 | −1.21 | −1.24 |
| 2 vs 4 | 0.71 | −0.71 | −1.30 | −0.96 | −1.08 | −0.86 |
| 3 vs 4 | −1.03 | −1.02 | −1.28 | −1.30 | −1.26 | −1.13 |
Cells are log10(BF10) as printed; positive = evidence the two window sizes differ, negative = evidence they do not. BF10 = 10 raised to the cell value. NLI faithfulness re-scored 2026-10-16: a sentence counts as supported when its highest entailment probability against a retrieved chunk is at least 0.5. The scores first published counted the neutral label (index 2) as entailment.
Construct Validity (v6): 5/6 PASS after the NLI Correction (6/6 as Published)
| Test | Prediction | Result | Status |
|---|---|---|---|
| top_k increases → relevance decreases | Monotonic decrease | 0.822 → 0.751 | PASS |
| top_k increases → completeness increases | Monotonic increase | 0.224 → 0.253 | PASS |
| Window size increases → NLI decreases | Monotonic decrease | 0.432, 0.442, 0.425, 0.392 (not monotonic) | FAIL |
| Window size increases → adherence decreases | Monotonic decrease | 0.766 → 0.662 | PASS |
| Reranking impacts relevance (info) | Directional | Confirmed | PASS |
| Reranking impacts composite (info) | Directional | 0.651 on vs 0.688 off | PASS |
The top_k and reranking rows average the four window sizes (200 questions each); the NLI and adherence window-size rows use the main run (top_k 5, reranking on). As published, the NLI row read 0.979 → 0.837 and passed; re-scored with the entailment label it is not monotonic, so the strict tests stand at 3 of 4 and the overall at 5 of 6.
Ceiling Problem Foreshadowing
Alongside 5 of 6 construct validity tests passing (6 of 6 as published), v6 revealed a severe measurement problem (ceiling rates over the 800 main-run responses, pooled across the four window sizes):
| Metric | Ceiling % | Assessment |
|---|---|---|
| NLI Faithfulness | 9.0% (71.6% as published) | Acceptable |
| Relevance | 66.9% | Unacceptable |
| Utilization | 66.8% | Unacceptable |
| Adherence | 29.6% | Acceptable |
| Completeness | 0.0% | Ideal |
Two of five metrics, relevance and utilization, had unacceptable ceiling effects (>50% of observations at maximum). The NLI ceiling published at 71.6% was the third; it was an artifact of the scorer’s label index and is 72 of 800 answers (9.0%) when scored with the entailment label (Section 2.2). Two saturated metrics still meant the composite score was increasingly driven by the metrics with remaining variance, raising the question: is this optimizing metrics or actual quality?
Decisions Carried Forward
- Window size = 1: best composite as scored at the time; on the corrected composite tied with window size 2 (0.659 vs 0.660), leading on adherence only
- Reranking = disabled: confirmed negative effect, unchanged by the correction
- Template = detailed: retained on an apparent +0.024 gain that the NLI correction removed (0.005 lower than the default at window size 1)
- top_k = 5: flat region, no need to change
- Address ceiling effects: measurement reform needed before trusting generation-level optimization
5. v7: Measurement Reform
Question: Are binary metrics hiding meaningful differences between generation configurations?
Design: 8 named generation configurations varying prompt_template (detailed, grounded_detailed, precise, structured), temperature (0.0 vs 0.1 default), max_tokens (768 vs 512 default), and top_k (3, 5, 7). All used sentence_window_1 with system_prompt=/no_think and other defaults from v6. 1,598 of 1,600 planned requests completed (200 per config); the 2 that failed (capacity time-outs, one each in anchor_detailed and topk_7) were not resubmitted. The same responses were scored twice: once with original binary metrics, once with continuous reformulations using an independent evaluation model.
The 8 Configurations
All configs share: system_prompt=/no_think, reranking=false, dense retrieval, similarity_threshold=0.45.
| Config | Temperature | Max Tokens | Top_k | Template | What it tests |
|---|---|---|---|---|---|
| anchor_detailed | 0.1 | 512 | 5 | detailed | Baseline (anchor) |
| maxtok_768 | 0.1 | 768 | 5 | detailed | More generation budget |
| topk_3 | 0.1 | 512 | 3 | detailed | Fewer, higher-quality chunks |
| topk_7 | 0.1 | 512 | 7 | detailed | More context coverage |
| temp_greedy | 0.0 | 512 | 5 | detailed | Deterministic decoding |
| grounded_detailed | 0.1 | 512 | 5 | grounded_detailed | Grounding-focused template |
| precise | 0.1 | 512 | 5 | precise | Adherence-maximizing template |
| structured | 0.1 | 512 | 5 | structured | Structured output format |
The Plateau Discovery
With binary metrics, the top-4 configurations (topk_3, maxtok_768, temp_greedy, anchor_detailed) scored 0.830–0.832 composite, a spread of just 0.0017 (as published; that composite carried NLI faithfulness at weight 0.20 under the mis-read label. Recomputed with the corrected NLI, the eight binary composites are in the table under Figure 14: the same four lead, at 0.692 to 0.699, with maxtok_768 fourth and grounded_detailed 0.001 behind; Section 2.2). The ranking appeared converged: further optimization seemed pointless.
But investigation revealed this convergence was an artifact of metric ceilings, not genuine equivalence.
Table T9: Binary vs Continuous Comparison
| Metric | Binary Mean | Binary Ceiling | Continuous Mean | Continuous Ceiling | Change |
|---|---|---|---|---|---|
| Adherence | 0.755 | 22.8% | 0.616 | 0.0% | Ceiling eliminated |
| Relevance | 0.912 | 86.7% | 0.581 | 0.0% | Ceiling eliminated |
| Utilization | 0.927 | 80.7% | 0.753 | 0.0% | Ceiling eliminated |
The binary relevance metric had 86.7% of all observations at the ceiling (1.0). Any configuration that exceeded the threshold got a perfect score, erasing all differences above that line. The continuous formulation, using raw cosine similarity instead of threshold-based binary classification, restored the full measurement range.
Table T10: Configuration Rankings, Binary vs Continuous
| Config | Binary Rank | Binary Composite | Continuous Rank | Continuous Composite | Rank Change |
|---|---|---|---|---|---|
| topk_3 | 1 | 0.832 | 1 | 0.583 | 0 |
| maxtok_768 | 2 | 0.832 | 2 | 0.582 | 0 |
| temp_greedy | 3 | 0.831 | 3 | 0.580 | 0 |
| anchor_detailed | 4 | 0.830 | 4 | 0.579 | 0 |
| grounded_detailed | 5 | 0.824 | 6 | 0.571 | −1 |
| topk_7 | 6 | 0.819 | 5 | 0.574 | +1 |
| precise | 7 | 0.796 | 7 | 0.555 | 0 |
| structured | 8 | 0.789 | 8 | 0.552 | 0 |
Binary composites and ranks as published: they include NLI faithfulness at weight 0.20 under the mis-read label. Recomputed with the corrected NLI (table under Figure 14) they run from 0.644 (structured) to 0.699 (topk_3) and the same four configurations lead (0.692 to 0.699). Across all eight configurations (1,600 rows) the corrected binary composite spreads 0.055 (0.043 as published) with one-way ANOVA F=4.01 (4.46). The continuous composite gives NLI zero weight and is unaffected.
The top-4 order was preserved, but the spread widened from 0.0017 to 0.0036, though still narrow. The continuous composite revealed 16 significant pairwise differences in paired t-tests (vs fewer with binary), with 5 Large or Medium effects (4 with paired d > 0.8, plus structured vs topk_7 at d = 0.71), all involving structured as the worst config.

Data plotted in Figure 3
| Metric | Formulation | n | Mean | Median | Q1 | Q3 | 95% CI of mean | At ceiling (%) |
|---|---|---|---|---|---|---|---|---|
| Adherence | Binary | 1,598 | 0.755 | 0.737 | 0.667 | 0.909 | [0.746, 0.763] | 22.8 |
| Adherence | Continuous | 1,598 | 0.616 | 0.601 | 0.558 | 0.671 | [0.611, 0.620] | 0.0 |
| Relevance | Binary | 1,598 | 0.912 | 1.000 | 1.000 | 1.000 | [0.899, 0.924] | 86.7 |
| Relevance | Continuous | 1,598 | 0.581 | 0.580 | 0.503 | 0.661 | [0.576, 0.587] | 0.0 |
| Utilization | Binary | 1,598 | 0.927 | 1.000 | 1.000 | 1.000 | [0.918, 0.936] | 80.7 |
| Utilization | Continuous | 1,598 | 0.753 | 0.761 | 0.719 | 0.802 | [0.749, 0.756] | 0.0 |
Summary statistics of the per-request values the histograms bin (30 equal-width bins over 0 to 1); raw values are not reproduced. Q1 to Q3 is the interquartile range.

Data plotted in Figure 14
| Configuration | n | Mean (continuous) | SD | Binary composite mean |
|---|---|---|---|---|
| topk_3 | 200 | 0.583 | 0.060 | 0.699 |
| maxtok_768 | 200 | 0.582 | 0.058 | 0.692 |
| temp_greedy | 200 | 0.580 | 0.060 | 0.694 |
| anchor_detailed | 199 | 0.579 | 0.060 | 0.693 |
| topk_7 | 199 | 0.574 | 0.063 | 0.680 |
| grounded_detailed | 200 | 0.571 | 0.076 | 0.691 |
| precise | 200 | 0.555 | 0.090 | 0.671 |
| structured | 200 | 0.552 | 0.051 | 0.644 |
Sorted by the continuous mean as plotted. The binary composite is the original v7 composite (0.30 adherence, 0.25 relevance, 0.20 NLI faithfulness, 0.15 utilization, 0.10 completeness, binary formulations) recomputed with the corrected NLI; it is not plotted and gives the subtitle's binary spread. NLI faithfulness re-scored 2026-10-16: a sentence counts as supported when its highest entailment probability against a retrieved chunk is at least 0.5. The scores first published counted the neutral label (index 2) as entailment.
Construct Validity Revolution: 0/2 → 2/2
Under binary metrics, both strict construct validity tests failed: the threshold-based scoring masked the expected monotonic relationship between top_k and relevance. After continuous reformulation:
| Test | Binary Result | Continuous Result |
|---|---|---|
| topk_3 > anchor (relevance) | FAIL (both at ceiling) | PASS (0.595 > 0.580) |
| anchor > topk_7 (relevance) | FAIL (both at ceiling) | PASS (0.580 > 0.570) |
This was the strongest evidence that binary metrics were not just noisy but actively misleading; they could not detect real differences that continuous metrics revealed.
The Top-4 Cluster Problem
Even with continuous metrics, the top-4 configs (composite 0.579–0.583) remained statistically indistinguishable in pairwise tests (paired t-tests, all Holm-corrected p > 0.05, all paired d < 0.15). The composite metric had reached its discriminative limit: the four best configurations produced responses of equivalent measured quality across adherence, relevance, utilization, and completeness.
This raised the question: is there a quality dimension not being measured?
Decisions Carried Forward
- Continuous metrics adopted: binary formulations permanently retired
- NLI given zero weight from v7: 88.8% apparent ceiling and independent-evaluation-model concerns; the ceiling was later traced to the scorer’s label index (3.8% of 600 v5 answers once corrected, Section 2.2), and the NLI scores of the 1,598 v7 answers were still computed, 0.27 to 0.32 per configuration when corrected (0.941 to 0.994 as published)
- Top-4 cluster identified: topk_3, maxtok_768, temp_greedy, anchor_detailed
- Need a new discriminator: automated composite cannot break the tie
- Explore answer relevance: holistic helpfulness judgment as complementary signal
6. v8: Answer Relevance Judge
Question: Can an LLM-judged answer relevance score discriminate between the top-4 configs that automated metrics cannot?
Design: Qwen3.5-9B (BF16 via vLLM, Docker container) scored all 1,598 v7 responses on a 1–5 Likert scale for answer relevance: “how helpful and relevant is this answer to the user’s question, considering completeness, accuracy, and specificity?” Temperature=0.0 for deterministic scoring. Scoring time: 969 seconds (about 1.65 responses/second).
Judge Calibration
Before scoring, the judge was calibrated against 50 human-labeled samples:
| Metric | Value | Threshold | Status |
|---|---|---|---|
| Cohen’s kappa (linear-weighted) | 0.469 [0.238, 0.665] | ≥ 0.6 | Soft FAIL |
| MAE | 0.580 | ≤ 1.0 | PASS |
| Within-1 agreement | 88% | n/a | Strong |
| Spearman rho | 0.509 | n/a | p=0.00016 |
| Parse rate | 100% | > 95% | PASS |
Kappa fell below the 0.6 threshold, indicating moderate (not substantial) agreement. The bracketed range is a percentile bootstrap 95% confidence interval (10,000 resamples of the 50 human-judge pairs); with 50 labels it is wide and includes the target. Quadratic weights give 0.542 [0.237, 0.771]. However, three factors supported proceeding: (1) 88% of judgments were within 1 point of human labels, (2) Spearman correlation was significant but weak (ρ 0.51, p<0.001), and (3) the primary analysis uses relative ranking rather than absolute scores, which is robust to a uniform offset in the judge’s scores but not to biases that vary with answer length or style (see Limitations 13 and 15).
Table T11: Combined Ranking (Composite + Answer Relevance)
| Config | Composite Rank | Composite | AR Rank | AR Mean | AR Std | Top-4? |
|---|---|---|---|---|---|---|
| topk_3 | 1 | 0.583 | 7 | 4.225 | 0.899 | Yes |
| maxtok_768 | 2 | 0.582 | 2 | 4.365 | 0.803 | Yes |
| temp_greedy | 3 | 0.580 | 3 | 4.310 | 0.792 | Yes |
| anchor_detailed | 4 | 0.579 | 6 | 4.246 | 0.844 | Yes |
| topk_7 | 5 | 0.574 | 4 | 4.281 | 0.786 | No |
| grounded_detailed | 6 | 0.571 | 5 | 4.265 | 1.020 | No |
| precise | 7 | 0.555 | 8 | 4.045 | 1.204 | No |
| structured | 8 | 0.552 | 1 | 4.440 | 0.831 | No |
The AR-Composite Tension
The most striking finding was structured: ranked dead last on composite (#8, score 0.552) but first on answer relevance (#1, AR 4.44). This suggests that the structured template produces responses that the judge rates as helpful despite scoring poorly on embedding-based metrics. This tension is informative but does not change the recommendation; structured’s composite deficit (d > 0.9 vs top-4) is too large to justify on automated metrics alone.
Top-4 Discrimination: AR Breaks the Tie
The central question: does AR discriminate within the top-4 cluster that composite cannot separate?
Overall Friedman test (all 8 configs, 198 questions answered by all eight): chi2 = 47.12, p = 5.3e-08. AR discriminates across the full set.
Top-4 Friedman test (199 questions answered by all four): chi2 = 12.41, p = 0.006. AR successfully discriminates within the top-4 cluster.
Top-4 Pairwise Comparisons (Wilcoxon + Holm)
| Pair | Mean Diff | Paired d | p (Holm) | Significant? |
|---|---|---|---|---|
| maxtok_768 > anchor_detailed | +0.116 | 0.221 | 0.014 | Yes |
| maxtok_768 > topk_3 | +0.140 | 0.218 | 0.013 | Yes |
| maxtok_768 > temp_greedy | +0.055 | 0.102 | 0.305 | No |
| temp_greedy > anchor_detailed | +0.065 | 0.125 | 0.267 | No |
| temp_greedy > topk_3 | +0.085 | 0.131 | 0.291 | No |
| anchor_detailed > topk_3 | +0.025 | 0.038 | 0.566 | No |
maxtok_768 significantly outperforms both anchor_detailed (d=0.221, p=0.014) and topk_3 (d=0.218, p=0.013). These are Small effects on the paired scale (dz, Section 2.4); the between-group d for the same comparisons is 0.14 and 0.16, below the 0.2 threshold for Small. They are the only statistically significant differences within a cluster that composite could not crack. Each comparison uses the questions both configurations answered (199 for pairs with anchor_detailed, 200 otherwise).

Data plotted in Figure 4
| Configuration | n | Mean | 95% CI lower | 95% CI upper | Top-4 cluster |
|---|---|---|---|---|---|
| structured | 200 | 4.44 | 4.32 | 4.56 | No |
| maxtok_768 | 200 | 4.37 | 4.25 | 4.48 | Yes |
| temp_greedy | 200 | 4.31 | 4.20 | 4.42 | Yes |
| topk_7 | 199 | 4.28 | 4.17 | 4.39 | No |
| grounded_detailed | 200 | 4.27 | 4.12 | 4.41 | No |
| anchor_detailed | 199 | 4.25 | 4.13 | 4.36 | Yes |
| topk_3 | 200 | 4.23 | 4.10 | 4.35 | Yes |
| precise | 200 | 4.05 | 3.88 | 4.21 | No |
Sorted by mean as plotted; means use the figure's round-half-up labels. Teal marks the top-4 cluster from v7's automated testing.

Data plotted in Figure 15
| Configuration | n | Mean | Median | Q1 | Q3 | 95% CI of mean | Top-4 cluster |
|---|---|---|---|---|---|---|---|
| anchor_detailed | 199 | 4.25 | 4.00 | 4.00 | 5.00 | [4.13, 4.36] | Yes |
| grounded_detailed | 200 | 4.26 | 5.00 | 4.00 | 5.00 | [4.12, 4.40] | No |
| structured | 200 | 4.44 | 5.00 | 4.00 | 5.00 | [4.32, 4.55] | No |
| precise | 200 | 4.04 | 5.00 | 3.00 | 5.00 | [3.88, 4.21] | No |
| topk_3 | 200 | 4.22 | 4.00 | 4.00 | 5.00 | [4.10, 4.35] | Yes |
| topk_7 | 199 | 4.28 | 4.00 | 4.00 | 5.00 | [4.17, 4.39] | No |
| temp_greedy | 200 | 4.31 | 4.00 | 4.00 | 5.00 | [4.20, 4.42] | Yes |
| maxtok_768 | 200 | 4.37 | 5.00 | 4.00 | 5.00 | [4.25, 4.47] | Yes |
Summary statistics of the per-response ratings the strip plot shows (one dot per response, jittered for display); raw values are not reproduced. Q1 to Q3 is the interquartile range. Means at 2 dp as the tick labels print them.

Data plotted in Figure 16
| Configuration | n | Mean | SD | Selected |
|---|---|---|---|---|
| maxtok_768 | 200 | 4.37 | 0.80 | Yes |
| temp_greedy | 200 | 4.31 | 0.79 | No |
| anchor_detailed | 199 | 4.25 | 0.84 | No |
| topk_3 | 200 | 4.22 | 0.90 | No |
Friedman χ² = 12.41, p = 0.006, n = 199 questions rated under all four.

Data plotted in Figure 17
| Metric | Spearman ρ | p | n | Mean | Median | Q1 | Q3 | 95% CI of mean |
|---|---|---|---|---|---|---|---|---|
| Adherence | 0.256 | 3.1e-25 | 1,598 | 0.616 | 0.601 | 0.558 | 0.671 | [0.611, 0.620] |
| Relevance | 0.244 | 3.8e-23 | 1,598 | 0.581 | 0.580 | 0.503 | 0.661 | [0.576, 0.587] |
| Utilization | 0.226 | 7.0e-20 | 1,598 | 0.753 | 0.761 | 0.719 | 0.802 | [0.749, 0.756] |
| Completeness | 0.088 | 4.5e-4 | 1,598 | 0.304 | 0.291 | 0.221 | 0.365 | [0.298, 0.310] |
| Composite | 0.331 | 3.5e-42 | 1,598 | 0.572 | 0.572 | 0.533 | 0.616 | [0.569, 0.575] |
| Answer relevance (1–5, y-axis) | — | — | 1,598 | 4.27 | 5.00 | 4.00 | 5.00 | [4.23, 4.32] |
ρ as printed in the panel titles. Summary statistics of the per-response values each scatter panel plots; raw values are not reproduced. Q1 to Q3 is the interquartile range. The last row describes the shared y-axis.
AR is Not a Proxy for Existing Metrics
Correlations between AR and automated metrics were modest:
| Metric | Spearman rho |
|---|---|
| Composite (continuous) | 0.331 |
| Adherence | 0.256 |
| Relevance | 0.244 |
| Utilization | 0.226 |
| Completeness | 0.088 |
The strongest correlation between the judge’s scores and the automated metrics was ρ = 0.331, with the composite. Weak correlations show that the judge and the automated metrics measure different things; they do not show that either is valid. The judge’s validity rests on the 50-answer human calibration (weighted κ 0.47, below the 0.6 target), which is why its scores rank configurations and are not read as absolute quality grades.
Construct Validity (v8): 1/2 Strict PASS
The v8 design specified four tests: two strict and two informational.
| Test | Prediction | Result | Status |
|---|---|---|---|
| precise < anchor (AR) | Constrained template → lower helpfulness | 4.045 < 4.246 (−0.201) | PASS |
| grounded < anchor (AR) | Grounded template → lower helpfulness | 4.265 > 4.246 (+0.019) | FAIL |
| structured vs anchor (AR) (info) | Direction only | 4.440 > 4.246 (+0.194) | PASS |
| AR tracks completeness more than adherence (info) | rho(AR, completeness) > rho(AR, adherence) | 0.088 < 0.256 | FAIL |
Test 2 failed by a negligible margin (+0.019, paired d=0.02). The grounded_detailed template performed slightly better than expected, possibly because its emphasis on sourcing improves perceived answer quality, though this was not directly tested.
The v8 results file (construct_validity.json) marks Test 4 as passed, but its pre-specified prediction does not hold (0.088 < 0.256), so this page records it as FAIL.
Decisions Carried Forward
maxtok_768 is the final selection. It is the only configuration that ranks in the top-2 on both dimensions: composite rank #2 (0.582) and AR rank #2 (4.365). It significantly outperforms 2 of 3 other top-4 members on AR while maintaining equivalent composite performance.
7. Cross-Version Synthesis
Optimization Trajectory
The four versions trace a clear narrowing funnel:
v5: 4 techniques + 8 sweeps = 49 cells x 150 questions -> sentence_window selected
v6: 4 windows x 7 settings = 28 cells x 200 questions -> sw_1 + reranking=false
v7: 8 configs x 200 questions, scored 2 ways -> measurement reform, top-4 cluster
v8: same 1,598 answers judged -> maxtok_768 (AR tiebreaker)Each version narrowed the search space (49 cells, then 28, then 8, then a choice within the top 4) while adding measurement sophistication. The total optimization path scored 14,545 answers across 40 configurations: the 4 techniques compared in v5, the 28 window-by-setting combinations of v6 and the 8 generation configurations of v7. The 1,598 v7 answers were also rated by the LLM judge in v8, a second score on answers already counted rather than additional answers. The count excludes v5’s 45 one-parameter sweep cells, which varied a single setting of one of the four techniques, so 85 cells were run in all; some settings recur across rounds (window sizes 1 and 3 at the v5 defaults were run again in v6 on 200 questions), so the 85 cells are not 85 distinct configurations and no de-duplicated cell count was established.
Metric Evolution
The evaluation framework evolved significantly through evidence-based decisions:
| Change | Version | Evidence | Impact |
|---|---|---|---|
| Completeness flagged as non-discriminating | v5 | ANOVA F=1.77, p=0.15, η²=0.009 | Flagged; retained, and discriminated strongly among the v7 generation configs |
| NLI faithfulness given zero weight | v7 | Apparent ceiling: 88.8% (v5), 71.6% (v6); traced in October 2026 to the scorer’s label index (corrected 3.8% and 9.0%, Section 2.2) | Given zero weight in the composite |
| Binary → continuous formulation | v7 | 2 metrics above a two-thirds ceiling (relevance 86.7% and utilization 80.7% of 1,598 answers; adherence 22.8%); 0/2 validity → 2/2 | Full discrimination restored |
| Answer relevance added | v8 | Top-4 composite plateau (spread 0.004) | Broke tie, identified maxtok_768 |
| Completeness discriminates among generation configs | v7 | Friedman χ²=785.22, η²=0.175; metric unchanged (ROUGE-L), v7 varied templates and token budgets | Weight increased 0.10 → 0.20 |
| Composite weights redistributed | v7 | NLI given zero weight, completeness reweighted | Stronger discrimination than the original weights (F: 2.19 → 6.81 with corrected NLI, 3.80 → 6.81 as published; same continuous metrics); equal weights gave 12.28 |
Construct Validity Trend
| Version | Strict Tests | Pass | Rate | Notes |
|---|---|---|---|---|
| v5 | 5 | 4 | 80% | Reranking test failed (dataset-specific) |
| v6 | 4 | 3 | 75% | 4 of 4 as published; the window-size NLI prediction fails on the corrected scores (5 of 6 overall) |
| v7 (binary) | 2 | 0 | 0% | Ceiling effects masked all signals |
| v7 (continuous) | 2 | 2 | 100% | Measurement reform recovered validity |
| v8 | 2 | 1 | 50% | Grounded template slightly exceeded expectation |
The v7 binary → continuous transition is the most dramatic result: the same data, same configurations, same predictions went from 0% to 100% validity solely through metric reformulation. This is strong evidence that metric design is at least as important as pipeline design.
Diminishing Returns
| Transition | Composite Change | AR Change | Effort |
|---|---|---|---|
| v5 → v6 | +0.041 (reranking=false, window size 1) | n/a | 5,597 requests |
| v6 → v7 | +0.022 as published (binary scale, best per round); −0.001 with corrected NLI (0.700 → 0.699) | n/a | 1,598 + re-eval |
| v7 top-4 | 0.004 spread (plateau) | n/a | Identified ceiling as cause |
| v8 maxtok_768 | −0.001 vs topk_3 | +0.140 vs topk_3 | 1,598 judge calls |
The v6 → v7 row compares the best binary composite of each round on the same 200 questions as published (0.810 for sw_1 with reranking off, 0.832 for topk_3). Both values carried the mis-read NLI scores at weight 0.20; corrected, they are 0.700 (Table T8) and 0.699 (table under Figure 14), so the published gain disappears. The continuous composite introduced in v7 is on a different scale and is not compared with v6 values.
The composite gains diminished rapidly: v6’s reranking discovery was the single largest improvement (+0.041). By v7, automated metrics had plateaued. v8’s contribution was not in composite improvement but in adding a new dimension (AR) on which maxtok_768 scored higher than two of the other three top-4 configurations (a small, statistically detectable difference) despite near-identical composite scores.
Key Findings Across All Versions
- Sentence_window_1 is the chunking strategy carried forward for ExpertQA with this model. It leads on adherence while maintaining adequate coverage; on the corrected v6 composite it ties with window size 2 (0.659 vs 0.660, 200 answers each), and its published NLI lead was the mis-read label.
- Reranking scored lower on ExpertQA. Observed in both v5 and v6 (in v6, at every window size), using the binary metrics only; reranking was not re-tested after the v7 measurement reform (Limitation 14). The v6 composite gap (0.651 with reranking vs 0.688 without, 800 answers each way) is unchanged by the NLI correction. One plausible but untested mechanism is that the cross-encoder filters out relevant chunks in this multi-domain dataset. Reranking had raised adherence on the earlier CovidQA and TechQA datasets, so this finding may not generalize to narrow-domain datasets.
- Binary threshold metrics have a hard ceiling problem. When most responses exceed a quality threshold, the metric saturates and can no longer discriminate. Continuous formulations are essential for high-performing systems.
- Composite metrics plateau before quality converges. The top-4 configs are equivalent on automated metrics but differ on AR. This suggests that automated metrics capture necessary but insufficient quality dimensions.
- max_tokens=768 beat the 512 default. Only these two values were compared in the v7 benchmark. More generation budget (768 vs the 512 default) produced a small, statistically detectable gain in judged helpfulness (AR paired d=0.221 vs anchor, p=0.014). The additional generation budget plausibly allows the model to elaborate rather than truncating, though this hypothesis was not directly tested.
- Temperature has minimal impact. temp_greedy (0.0) vs anchor_detailed (0.1) differ by just paired d=0.125 on AR and d=0.028 on composite. Even this small temperature gap produces negligible differences.
- Prompt template matters more than expected. The structured template produces the highest judged helpfulness (AR 4.44) but worst composite (0.552). This tension between automated and judge-based metrics deserves future investigation.
- The faithfulness scorer read the wrong label for three rounds. Every published NLI score in v5 to v7 counted the neutral label as entailment, and the internal ceiling check made the same assumption, so the error was found only when the stored scores were re-computed in October 2026 (Section 2.2). Corrected, the finalists have about 0.30 of answer sentences supported by a retrieved chunk, the v6 window-size, template and top_k findings change, and the hybrid fidelity loss shrinks from 0.309 to 0.063; the reranking result and the final selection do not depend on the metric. A measurement that agrees with expectations still has to be checked against its own definition.
8. Final Recommendation
Table T12: Best Configuration Card
| Parameter | Value | Source Version | Evidence |
|---|---|---|---|
| Technique | sentence_window | v5 | Best coverage-fidelity tradeoff (coverage d=0.64 to 0.65, Medium; corrected NLI also favors sentence_window, d=0.22) |
| Window size | 1 | v6 | Composite 0.659 with corrected NLI, tied with window size 2 (0.769, rank #1, as published); adherence 0.766, the highest; window size 1 vs 2 not re-tested under the corrected protocol |
| Reranking | disabled | v5, v6 | v5: adherence lower with reranking, not significant; v6: +0.041 binary-era composite at window size 1 without reranking, same direction at every window size, gap unchanged by the NLI correction; not re-tested by the judge after v7 |
| Top_k | 5 | v6 | v6: flat across k=3 to 10 (0.645 to 0.653, corrected binary composite averaged over window sizes; k=3 had appeared lower at 0.733 as published); v7: k=3 ranked #1 on continuous composite but #7 on AR |
| Retrieval | dense only | v5 | Hybrid: adherence −0.080, corrected NLI −0.063 (600 answers each; published as −0.309 NLI) |
| Prompt template | detailed | v6, v7 | Retained default; its Round 2 evidence reversed under the corrected scorer: adopted on +0.024 composite over default at window size 1 as published, −0.005 with corrected NLI (Section 4). The four finalists and five of the eight v7 configurations used it (grounded_detailed, precise and structured did not); default vs detailed was not re-tested under the corrected protocol |
| Max tokens | 768 | v7, v8 | AR 4.365 (#2); composite 0.582 (#2) |
| Temperature | 0.1 | v7 | Default; negligible difference vs 0.0 |
| System prompt | /no_think | v7 | All 8 v7 configs used /no_think (workflow default) |
| Similarity threshold | 0.45 | v5 | ExpertQA-calibrated (mean sim 0.440) |
Expected Performance
| Metric | Expected Value | Source |
|---|---|---|
| Composite (continuous) | 0.582 | v7 config_ranking_continuous.json |
| Adherence (continuous) | 0.608 | v7 config_ranking_continuous.json |
| Relevance (continuous) | 0.581 | v7 config_ranking_continuous.json |
| Utilization (continuous) | 0.768 | v7 config_ranking_continuous.json |
| Completeness | 0.354 | v7 config_ranking_continuous.json |
| Answer Relevance | 4.365 / 5.0 | v8 config_ranking.json |
| 95th pct latency | 39.8s | v7 maxtok_768 run (end-to-end, up to 8 requests in flight) |
| Failed attempts | 0 of 200 | v7 maxtok_768 run; 78 of 14,623 attempts (0.5%) across v5–v7 (Section 2.1) |
Table T13: Finalist Comparison
| Config | Comp. Rank | Composite | AR Rank | AR Mean | Mean Latency | Failed | Key Differentiator |
|---|---|---|---|---|---|---|---|
| maxtok_768 | 2 | 0.582 | 2 | 4.365 | 28.5s | 0/200 | +256 tokens → AR gain |
| topk_3 | 1 | 0.583 | 7 | 4.225 | 23.6s | 0/200 | Best composite, weak AR |
| temp_greedy | 3 | 0.580 | 3 | 4.310 | 23.6s | 0/200 | Deterministic; no sig. edge |
| anchor_detailed | 4 | 0.579 | 6 | 4.246 | 27.2s | 1/200 | Baseline anchor config |
| structured | 8 | 0.552 | 1 | 4.440 | 14.3s | 0/200 | Best AR but worst composite |
Mean latency is the end-to-end time per completed request (retrieval, generation and metric scoring) in each configuration’s v7 run, with up to 8 requests in flight on one RTX 4090. Failed counts are requests that did not complete in that run. Composite and AR from v7 re-evaluation and v8 judge scoring, respectively.
Operational Characteristics
- Latency: 28.5s mean, 39.8s p95 end-to-end (v7 maxtok_768 run, up to 8 requests in flight); the 512-token anchor measured 27.2s mean, 33.3s p95 (Limitation 16)
- Failed attempts: 0 of 200 in the v7 maxtok_768 run; 78 of 14,623 attempts (0.5%) across v5–v7, with 5 requests excluded after failing (Section 2.1)
- Throughput: ~0.32 req/s averaged over the full v5 run (7,350 requests in about 378 minutes); the 195-request v5 pilot measured 0.175 req/s
- Resource requirements: Single RTX 4090, ~23 GiB peak VRAM (12.2 GiB model + KV cache + evaluation models)
Selection Rationale
Decision rule: Select the configuration that ranks in the top tier on automated composite metrics AND performs best on answer relevance, excluding any configuration with a large automated-metric deficit.
maxtok_768 is the preferred candidate under this rule, the selection process the study followed:
- Composite: Rank #2 (0.582), within 0.001 of the best (topk_3, 0.583). The difference is not statistically significant (p > 0.8).
- Answer Relevance: Rank #2 (4.365), significantly better than anchor_detailed (#6, paired d=0.221, p=0.014) and topk_3 (#7, d=0.218, p=0.013).
- No other config ranks top-2 on both dimensions: topk_3 is #1 composite but #7 AR. temp_greedy is #3 on both. structured is #1 AR but #8 composite.
- max_tokens=768 is the differentiator: The only parameter change from the anchor config (512 tokens) is +256 max tokens. This extra generation budget produces a small, statistically detectable gain in judged helpfulness (paired d=0.221 on AR) at negligible composite cost.
The recommendation is provisional in one respect. Three decisions carried into this configuration from v5 and v6 rest on scores the October 2026 NLI correction changed and have not been re-tested under a validated protocol: the default against the detailed prompt template, window size 1 against 2, and reranking off against on. The detailed template is a retained default; its Round 2 evidence reversed under the corrected scorer. Window sizes 1 and 2 tie on the corrected composite. The reranking finding keeps its stated basis: lower adherence in v5 (not significant), a lower binary-era composite in v6 (a gap the correction did not change), and no re-test by the judge.
Caveats
- All results are specific to ExpertQA with Nemotron-9B-NVFP4. Generalization to other datasets or models requires validation.
- Answer relevance calibration showed moderate agreement (kappa=0.469). The relative ranking is more trustworthy than absolute scores.
- The optimization used one-factor-at-a-time (OFAT) sweeps, not factorial designs. Interaction effects may exist between parameters that were not explored.
- The configuration was selected and scored on the same questions, so the expected values above are in-sample and were not confirmed on held-out questions (Limitation 9).
- The v6 evidence for window size 1, the detailed template and top_k 5 changed when the NLI scores were corrected in October 2026 (Section 4): window sizes 1 and 2 tie, the template no longer shows a gain, and top_k is flat from 3 to 10. The v7 and v8 results that selected maxtok_768 gave NLI zero weight and are unchanged (Limitation 18).
9. Limitations
- Single dataset: All results are from ExpertQA only. Findings like “reranking hurts” may not generalize to narrow-domain datasets, where earlier internal rounds on CovidQA (v3) and TechQA (v4) showed reranking benefits.
- Single model: Nemotron-Nano-9B-v2-NVFP4 is a specific quantized model. Larger or differently quantized models may shift optimal configurations, particularly for max_tokens and prompt template effects.
- OFAT sweep design: Parameters were swept one at a time. Factorial designs would reveal interaction effects (e.g., window_size × reranking, temperature × max_tokens) but at exponentially higher cost.
- Moderate calibration kappa: The AR judge achieved kappa=0.469 (moderate; bootstrap 95% CI 0.238 to 0.665 from the 50 labels), below the 0.6 threshold for substantial agreement. Within-1 agreement was 88%, and a significant but weak Spearman correlation (ρ 0.51) supports relative ranking only; absolute AR scores should be interpreted cautiously.
- Metric reformulation mid-study: Switching from binary to continuous metrics between v6 and v7 means composite scores are not directly comparable across that boundary. The composite scale shifted from about 0.63 to 0.70 for the binary composite with the corrected NLI (0.72 to 0.83 as published) to about 0.55 to 0.58 for the continuous one.
- No large-scale human evaluation: The AR judge is an automated proxy for human judgment. The 50-sample calibration set may not capture the full distribution of human preferences. A larger human evaluation (N > 200) would strengthen confidence in AR-based conclusions.
- Completeness metric history: Completeness (ROUGE-L recall against the reference answer) showed zero discriminative power between chunking techniques in v5 (F=1.77, p=0.15) and was flagged for removal. It was not reformulated in v7, but it discriminated strongly among the v7 generation configurations (Friedman χ²=785.22, η²=0.175, the strongest of all metrics), because prompt templates and token budgets change how much of the reference an answer covers. This justified the weight increase from 0.10 to 0.20. The metric’s utility depends on which parameters vary.
- Non-independent test cases: v5 used 150 test cases and v6–v8 used 200, all drawn from the same 203-question ExpertQA test split; the 150 are a subset of the 200 (Section 2.1). Within each version, every configuration answered the same questions. While paired analysis accounts for within-subject correlation, there is no guarantee these questions represent the full distribution of real-world queries. Performance on unseen questions may differ.
- In-sample selection: Every configuration was tuned, selected and scored on the same benchmark questions (150 in v5, all among the 200 used in v6–v8). No held-out set was used, so the reported scores for the selected configuration, including AR 4.365 and composite 0.582, are in-sample and likely optimistic. They were not confirmed on unseen questions.
- Metric validity (similarity, not correctness): Adherence, relevance and utilization are embedding cosine similarities, and completeness is ROUGE-L word overlap with the reference answer (Table T3). They measure how closely an answer tracks the retrieved text and the reference, and how closely the retrieved text matches the question; they do not check whether the answer’s claims are factually correct. An answer can stay close to its sources and still state a wrong value or omit an exception. The metric names follow RAGBench and the computations are similarity-based proxies, as stated under Table T3 (Section 2.2). NLI faithfulness, the only entailment-based check, was given zero weight from v7 and not replaced in the final selection. Re-scored with the entailment label in October 2026, it is the one such measurement of the selected answers: across the four finalists, about 0.30 of answer sentences are supported by at least one retrieved chunk at an entailment probability of 0.5 or more (799 answers, 12,947 sentences; maxtok_768 0.290, 95% CI 0.265 to 0.315), and 798 of the 799 answers contain at least one unsupported sentence. The corrected score does not separate the finalists (Friedman p=0.49 on the 199 questions all four answered). Unsupported is not the same as false (Limitation 18).
- No retrieval-level metrics: Retrieval was not scored directly. No recall@k or equivalent records whether the passages needed to answer each question were retrieved; the relevance metric scores how similar the retrieved passages are to the question, not whether the right passages were found. Conclusions about reranking, hybrid retrieval and top_k rest on answer-level similarity scores.
- Single run per configuration: Each configuration answered each question once. Run-to-run variation from sampling (temperature 0.1) and serving was not measured, so the smallest reported differences, such as those inside the v7 top-4 cluster, may be within run-to-run noise.
- Length bias not measured: The selected configuration differs from the anchor only by a larger output budget (768 vs 512 tokens), and LLM judges can favor longer answers. Output length, the share of answers cut off at 512 tokens and the correlation between judge score and length were not measured. The v8 design listed a verbosity check (|rho| < 0.3) among its required calibration tests; no result for it is recorded. Part of the maxtok_768 gain on AR may therefore reflect length rather than quality.
- Reranking evidence predates the measurement fix: The decision to disable reranking rests on v5 and v6, which used the binary metrics that v7 found saturated (Section 5). Reranking was not re-tested afterwards: all eight v7 configurations ran with reranking off. In v5 the adherence difference was not significant (p=0.166, Figure 6), and no significance test was run on the v6 comparison (Figure 12). The binary relevance metric was also scored with the same embedding model used for dense retrieval, which the v7 evaluation review identified as circular. With reranking off, the passages kept are the ones that model already ranks highest, so part of the relevance gain may be built into the measurement. Reranking had raised adherence on the earlier CovidQA and TechQA datasets (Limitation 1).
- Judge calibration soft fail: The judge’s weighted kappa (0.469) missed the 0.6 target set in the v8 design, which records the result as a soft fail; scoring proceeded anyway (Limitation 4). The 50 calibration labels came from a single rater, the study author. The rubric was revised once after the first calibration pass (kappa 0.284), and the revised rubric was evaluated on the same 50 labels. The v8 design also listed position-bias (reversed chunk order) and self-consistency checks as required; no results for them are recorded. The judge sees no reference answer. AR differences between configurations are therefore relative signals from one LLM judge, not established human preferences.
- Latency measured under concurrent load: The latency figures in Section 8 are end-to-end request times (retrieval, generation and metric scoring) from each configuration’s v7 run, with up to 8 requests in flight on one GPU. They are not single-user response times and were not re-measured outside the benchmark. The 768-token selection averaged 28.5 s (p95 39.8 s), against 27.2 s (p95 33.3 s) for the 512-token anchor. In v6 at window size 1, switching from the default to the detailed template raised mean generation time from 10.9 s to 25.5 s.
- Post-hoc weights and selection rule: The v7 composite weights (NLI given zero weight; adherence, utilization and completeness raised) were chosen after the v7 results had been examined, partly because they separated the configurations better than the original weights, though equal weights separated them more (Section 2.3). The decision rule in Section 8 (top tier on composite and best on AR, excluding large composite deficits) does not appear in the v8 design document written before scoring. Neither choice was pre-specified, so the final ranking reflects decisions made with the results in view.
- NLI faithfulness corrected after publication: The NLI scores published for v5 to v7 counted the model’s neutral label as entailment (Section 2.2). The correction re-scored every completed answer from the stored retrieved chunks; Table T10 and the v6 to v7 transition keep the published per-configuration binary composites, with the corrected values beside them (table under Figure 14; Section 7). The corrected check is sentence-level against single chunks: it misses claims that combine chunks, penalizes paraphrase and connective sentences, and counts heading and bullet fragments (2,128 of the 12,947 finalist sentences; dropping them raises each finalist’s mean by 0.019 to 0.034). A contradiction at probability 0.5 or more appears in 8.0% to 12.5% of sentences per finalist. The corrected scores say how much of each answer at least one retrieved passage entails on its own, not how much of it is true.
Open items from the October 2026 review
The following items could not be settled from the study documents or the results files and remain open:
- Readable labels: configuration names in Part II (for example maxtok_768, topk_3) remain internal identifiers.
- Cost: GPU-hours and cost per round are not reported.
- Re-analyses: held-out confirmation, a reranking re-test on the continuous metrics and the judge, retrieval recall, and an output-length analysis of the finalists have not been run.
10. Artifact Index
Artifacts are internal and available on request when the study’s terms allow; file names are listed for traceability, not download.
Analysis Reports
| File | Version | Content |
|---|---|---|
| results/v5/v5_session1_analysis/session_1_analysis.md | v5 | Full statistical analysis (77 PNGs, 23 JSONs) |
| results/v6/v6_session1_analysis/session_1_analysis.md | v6 | Window size analysis (78 artifacts) |
| results/v7/v7_reevaluation_analysis/reevaluation_analysis.md | v7 | Binary vs continuous comparison |
| results/v8/v8_judge_analysis/judge_analysis.md | v8 | Answer relevance analysis |
Key Data Files
| File | Version | Content |
|---|---|---|
| results/v7/.../config_ranking_continuous.json | v7 | Continuous composite rankings (8 configs) |
| results/v7/.../formulation_comparison.json | v7 | Ceiling rates and F-statistics |
| results/v8/.../config_ranking.json | v8 | AR rankings (8 configs) |
| results/v8/.../top4_discrimination.json | v8 | Friedman + pairwise tests |
| results/v8/.../construct_validity.json | v8 | 4 construct validity tests (2 strict, 2 informational) |
| results/v8/.../metric_correlations.json | v8 | AR vs automated metric correlations |
| results/v8/.../discrimination.json | v8 | Overall Friedman (all 8 configs) |
Design Documentation
| File | Version | Content |
|---|---|---|
| documentation/260311_01_.../design_analysis.md | v5 | Approved design (4 techniques, 8 sweeps) |
| documentation/260313_01_.../design_analysis.md | v6 | Approved design (4 window sizes, 3 sweeps, 28 cells) |
| documentation/260314_01_.../design_analysis.md | v7 | Re-evaluation methodology |
| documentation/260315_01_.../design_analysis.md | v8 | AR judge design |
Appendix A: Answer Relevance Judge Protocol
Judge Model
- Model: Qwen3.5-9B (BF16 precision)
- Inference engine: vLLM with enforce_eager=True, max_model_len=4096, gpu_memory_utilization=0.85
- Temperature: 0.0 (deterministic scoring)
- Max output tokens: 1024
- Thinking mode: Disabled (enable_thinking: False)
Scoring Scale
| Score | Anchor |
|---|---|
| 1 | Completely unhelpful: response is irrelevant, incoherent, or empty |
| 2 | Mostly unhelpful: response touches the topic but fails to address the question |
| 3 | Partially helpful: response addresses some aspects but misses key parts or is vague |
| 4 | Mostly helpful: response addresses the question well with minor gaps or unnecessary content |
| 5 | Fully helpful: response directly and completely addresses the question using the provided context |
Evaluation Criteria
- Does the response directly answer the user’s question?
- Does the response use the provided context effectively?
- Is the response appropriately detailed (not too brief, not excessively verbose)?
- Would a domain expert find this response useful?
Additional scoring rules instruct the judge not to reward verbosity, to use the full 1–5 scale (reserving 5 for truly excellent responses), and to score 3 for on-topic but gapped responses.
Prompt and Rubric
The exact judge prompt is defined in scripts/rag_benchmark_v8/config.py (JUDGE_USER_TEMPLATE). The system prompt instructs the model to act as an expert answer quality judge and output valid JSON only. The user prompt provides the question, retrieved context chunks (numbered), and the response to evaluate, followed by the rubric and scoring rules.
Output format: {"score": <1-5>, "reasoning": "<brief justification>"}. Parsing uses strict JSON first, then regex fallback. Parse rate: 100% across all 1,598 responses.
Blinding and Ordering
- Blinding: The judge sees question, context chunks, and response only: no configuration identity, run name, or parameter values are provided.
- Presentation order: Responses are scored sequentially in CSV row order (one response per judge call). No within-response randomization is applicable since each call evaluates a single response.
- Position bias: Response-order bias does not apply in this protocol (single-response evaluation, not pairwise comparison). Sensitivity to the order of context chunks was listed as a calibration check in the v8 design; no result is recorded.
Calibration
50 human-labeled samples scored by the judge before full deployment. Results: linear-weighted kappa=0.469 (moderate; percentile bootstrap 95% CI 0.238 to 0.665, 10,000 resamples of the 50 pairs), MAE=0.580, within-1 agreement=88%, Spearman rho=0.509. See scripts/rag_benchmark_v8/calibrate_judge.py for the calibration protocol.
Known Biases and Limitations
- Verbosity bias: Possible but not measured. Longer responses may receive higher scores from the judge regardless of quality. Anti-verbosity instructions are included in the prompt, but their effectiveness was not independently validated.
- Rubric iteration: The rubric was revised once after initial calibration (iteration 1 showed judge bias toward score 5). The deployed rubric includes explicit anti-inflation instructions.
- Kappa below threshold: Weighted kappa (0.469) fell below the 0.6 target for substantial agreement. Relative ranking is more robust than absolute scores.
References
- Malaviya et al. (2023). ExpertQA: Expert-Curated Questions and Attributed Answers. arXiv:2309.07852
- Friel, Belyi and Sanyal (2024). RAGBench: Explainable Benchmark for Retrieval-Augmented Generation Systems. arXiv:2407.11005
Revision history
Corrections and wording changes made after publication are listed here with the date they went live. The underlying measurements are unchanged unless a note says otherwise.
- Wording only; no result changed. The two earlier rounds in which reranking had helped are described as internal test rounds on other public datasets (CovidQA and TechQA) in the summary’s main limitations, in “What this does not show” and in Part I, in place of “two earlier internal datasets”, which read as private data. The summary now gives the helpfulness comparison as 200 and 199 rated answers in place of “200 questions each”: one request to the starting setup timed out in v7 and was not resubmitted, as Part II and the figure captions already state. The teaser says the testing narrowed to one preferred candidate, the summary’s own term, in place of “one evidence-based RAG setup”.
- The headline count is restated as 14,545 scored answers (of 14,550 planned in v5 to v7) across 40 configurations; the earlier 16,143 added the 1,598 judge ratings of v7 answers to answers already counted, and it now appears only in this history. The selected configuration is described as the preferred candidate under the selection process the study followed, because three decisions carried forward from v5 and v6 rest on scores the October 2026 NLI correction changed and have not been re-tested under a validated protocol: the default against the detailed prompt template, window size 1 against 2, and reranking off against on. The detailed template is labelled a retained default whose Round 2 evidence reversed under the corrected scorer, and the reranking finding keeps its stated basis (v5 adherence, not significant; the v6 binary-era composite; no re-test by the judge). The teaser states that basis in plain language. The population table now reconciles the counts: 200 unique questions; 14,550 answers planned and 14,545 completed; 15,139 stored v5 to v7 score rows, the 594 extra being pilot-run answers (193 in v5, 195 in v6, 206 in v7) that the published results exclude; 799 finalist answers re-scored in October 2026; 1,598 judge scores; each row names its files. Part I now names relevance (86.7% of the 1,598 Round 3 answers at the maximum) and utilization (80.7%) as the two pass/fail metrics with ceiling effects, adherence (22.8%) having none, and the synthesis table counts two such metrics rather than three. The Executive Summary v6 cell was rewritten in plain form; the Methodology states that the NVFP4 weights are served weight-only through vLLM’s Marlin kernel on the RTX 4090; the RAGBench-naming qualifier moved from Limitation 10 to a sentence under Table T3; and a note under Figure 15 records that Figures 4 and 15 round the same means differently (4.05 against 4.04 and 4.23 against 4.22) pending one convention at the next regeneration.
- The NLI faithfulness scores published for every round measured the wrong label. The scorer treated index 2 of cross-encoder/nli-deberta-v3-large as entailment; in that model index 2 is neutral, so each stored score was the share of answer sentences that some retrieved passage was neutral toward, which is why the scores sat near 1.0. Re-running the old rule reproduced all 15,139 stored scores exactly. Re-scored with the entailment label (a sentence counts as supported when its highest entailment probability against a retrieved passage is at least 0.5), the four finalists average 0.30 of sentences supported, not 0.98, and 798 of their 799 answers contain at least one unsupported sentence; unsupported is not the same as false. Corrected: the NLI columns and the composite scores of v5 and v6, Figures 1, 2, 5, 7, 8 and 10 to 13, and the binary spread in the subtitle of Figure 14 (figures are now numbered continuously from Part I; the Part II numbers used before this revision differ). The apparent NLI ceiling (88.8% of 600 v5 answers, 71.6% of 800 v6 answers) is 3.8% and 9.0%. The NLI drop with hybrid retrieval is 0.063, not 0.309. In v6, window sizes 1 and 2 tie on the composite, the detailed template no longer raises it, top_k 3 is no longer lower, and the window-size NLI prediction fails (construct validity 5 of 6). Unchanged: the final selection (NLI carried zero weight from v7), the answer-relevance judge, the embedding and ROUGE metrics, the reranking result and latency. Part I now opens with the result and scope in one sentence, and the 40-configuration count is broken down as 4 + 28 + 8 with the v5 sweep cells stated separately. Every figure now carries a visible table of its plotted values and a caption that states metric, population, threshold and interval; a table of populations and instruments, three more evidence-record rows (selection, confirmation, evidence access) and a citation line were added.
- Hub tiles restated as 14,545 answers scored on 200 questions (the earlier 16,143 counted the 1,598 judge scores a second time) and 40 configurations; the judge-correlation passage no longer presents a modest correlation as validation; NLI faithfulness is described as computed in every round and given zero weight from v7, its ceiling now called apparent pending a re-score.
- Figure 16 now highlights the selected configuration (maxtok_768) rather than temp_greedy, and the footer of Figure 6 (Figure 9 since the 2026-10-16 renumbering) was replaced with a plain description of its error bars. A sign in the Section 7 synthesis table was corrected to −0.001 vs topk_3, and the composite weight redistribution sentence now accounts for the full 0.20. The helpfulness headline is stated relative to the starting configuration, the judge calibration result (weighted kappa 0.47 against a 0.6 target) is reported in Part I, and the public dataset is named and cited. The study was retitled from "Reclaiming AI Document Search Quality Through Configuration Testing and Parameter Sweeps". Predictions are described as pre-specified. The artifact index notes that files are internal and available on request. Summary box, evidence tags and scope note added; limitations 9 to 17, a references list and a request-accounting table added, with per-finalist latency and the judge’s confidence interval taken from the benchmark’s own results.
Cite as: RCTK LLC (2026). RAG Optimization Benchmark: How 14,545 Scored Answers Picked One Configuration. https://rctk.com/case-studies/rag-benchmark. Revised .
© 2026 RCTK LLC. All rights reserved. Brief quotation with attribution and a link to this page is permitted; other reproduction or distribution requires prior written permission.