Skip to main content
All Studies

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 identified

The 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.

Heatmap of the mean score of each chunking technique on each quality metric, shaded darker teal for higher means, in which completeness and NLI faithfulness are pale for every technique and the sentence-window technique is darkest on relevance and utilization.
Figure 1: Mean score (0 to 1) of each of four document-splitting methods on five quality measures, over 600 Round 1 answers (150 per method), with the faithfulness column re-scored after the October 2026 correction. No method leads on every measure: sentence-window retrieval (sentence_window_3) has the highest mean on relevance, utilization and faithfulness, semantic splitting on adherence (0.733) and sentence_400 on completeness (0.261).

Data plotted in Figure 1

TechniqueAdherenceNLI faithfulnessRelevanceUtilizationCompleteness
recursive_4000.6340.3130.5240.5530.259
semantic0.7330.3510.5890.6460.256
sentence_4000.6740.3360.5710.5730.261
sentence_window_30.6880.4080.8080.8360.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.

Bar chart of the mean composite score for each sentence-window size with confidence-interval whiskers, the smallest windows highlighted in teal as tied and the larger windows in gray slightly lower.
Figure 2: Mean overall quality score (a weighted composite of five measures, 0 to 1, with the corrected faithfulness scores) for each window size, over 800 Round 2 answers (200 per size). Error bars are 95% confidence intervals of the mean. Window sizes 1 and 2 tie at 0.659 and 0.660 and sizes 3 and 4 score lower (0.650 and 0.633), though every interval overlaps every other.

Data plotted in Figure 2

Window sizenMean composite95% CI lower95% CI upper
12000.6590.6350.684
22000.6600.6340.686
32000.6500.6240.676
42000.6330.6040.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.

Histogram panels for adherence, relevance and utilization, each overlaying the binary score distribution as a dark outline that piles up at the maximum and the continuous distribution in teal that spreads across the middle of the scale.
Figure 3: Distribution of per-answer scores on adherence, relevance and utilization (0 to 1) for the same 1,598 Round 3 answers under the original pass/fail scoring (dark outline) and the graduated scoring that replaced it (teal), with 0.999 or above counted as the maximum; the intervals in the table are 95% bootstrap intervals of each mean. Pass/fail scoring puts 86.7% of the 1,598 relevance scores, 80.7% of the utilization scores and 22.8% of the adherence scores at the maximum, where they all look the same; graduated scoring puts none there.

Data plotted in Figure 3

MetricFormulationnMeanMedianQ1Q395% CI of meanAt ceiling (%)
AdherenceBinary1,5980.7550.7370.6670.909[0.746, 0.763]22.8
AdherenceContinuous1,5980.6160.6010.5580.671[0.611, 0.620]0.0
RelevanceBinary1,5980.9121.0001.0001.000[0.899, 0.924]86.7
RelevanceContinuous1,5980.5810.5800.5030.661[0.576, 0.587]0.0
UtilizationBinary1,5980.9271.0001.0001.000[0.918, 0.936]80.7
UtilizationContinuous1,5980.7530.7610.7190.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.

Horizontal bar chart ranking every configuration by mean judge-rated helpfulness with confidence-interval whiskers, the finalists from automated testing in teal and the rest in gray.
Figure 4: Mean helpfulness rating from the independent AI judge (answer relevance, 1 to 5) for each of eight Round 4 configurations, over 1,598 rated answers (199 or 200 per configuration). Error bars are 95% confidence intervals of the mean. Teal bars are the four candidates that automated testing could not separate; among them the selected configuration (maxtok_768) has the highest mean, 4.37, and the judge’s ratings of the four differ detectably (Friedman test, p = 0.006 on the 199 questions rated under all four; Figure 16).

Data plotted in Figure 4

ConfigurationnMean95% CI lower95% CI upperTop-4 cluster
structured2004.444.324.56No
maxtok_7682004.374.254.48Yes
temp_greedy2004.314.204.42Yes
topk_71994.284.174.39No
grounded_detailed2004.274.124.41No
anchor_detailed1994.254.134.36Yes
topk_32004.234.104.35Yes
precise2004.053.884.21No

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.

nRoleDate
203 questionsExpertQA test split as packaged in RAGBench: multi-domain, expert-sourced questions, the pool every sample was drawn from (Section 2.1).Not recorded
200 questionsStratified 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 questionsv5 stratified sample, a subset of the 200 (Section 2.1).Not recorded
40 configurationsThe 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 answersThe 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 rowsEvery 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 answersThe 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 answersThe 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 answersHuman-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

VersionQuestion AskedRequestsConfigsDurationKey Outcome
v5Which chunking technique is best?7,3504 techniques + 8 sweeps~6.3hsentence_window leads on composite; all 4 techniques retained as viable
v6Which window size and parameters?5,5974 window sizes + 3 sweeps~9.2hWindow 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)
v7Are binary metrics hiding differences?1,5988 generation configs~3h 05min generation; re-scoring 117.5 sYes: ceilings at 22.8/86.7/80.7% eliminated; top-4 plateau at 0.579–0.583
v8Can AR break the top-4 tie?1,5988 generation configs~16minYes: Friedman p=0.006; maxtok_768 wins (AR 4.365)

Table T2: Decision Funnel

VersionSearch SpaceDecisionCarried Forward
v54 techniques + 8 sweeps (49 cells)sentence_window best coverage-fidelity tradeoffTechnique = sentence_window
v64 window sizes + 3 sweeps (28 cells)sw_1 + reranking=false = 0.700 composite with corrected NLI (0.810 as published)Window = 1, reranking = false
v78 generation configsBinary metrics plateau; continuous reformulationContinuous metrics; top-4 cluster identified
v8Top-4 clustermaxtok_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:

  1. Validate Input: schema checks on question + ground truth
  2. Retrieve: dense retrieval via ChromaDB (Qwen3-Embedding-0.6B, 1024-dim) with optional BM25 hybrid fusion
  3. Rerank: cross-encoder re-ranking (bge-reranker-v2-m3) with configurable enable/disable
  4. 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
  5. Evaluate: automated metrics computed against ground-truth answers and retrieved contexts
  6. 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.

VersionPlannedAttemptsFailed AttemptsLater CompletedCompletedExcluded
v57,3507,42171717,350 (100%)0
v65,6005,602525,597 (99.9%)3
v71,6001,600201,598 (99.9%)2
v5–v7 total14,55014,62378 (0.5%)7314,545 (99.97%)5
v8 (judge)1,5981,5980n/a1,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

MetricBinary Formulation (v5–v6)Continuous Formulation (v7–v8)Range
AdherenceFraction of answer sentences whose closest retrieved chunk has cosine similarity ≥ 0.50Mean, over answer sentences, of the highest cosine similarity to any retrieved chunk[0, 1]
RelevanceFraction of retrieved chunks with question-chunk cosine similarity ≥ 0.55, scored with the retrieval embedding modelMean question-chunk cosine similarity, scored with an independent model (all-MiniLM-L6-v2)[0, 1]
UtilizationFraction of retrieved chunks whose closest answer sentence has cosine similarity ≥ 0.60Mean, over retrieved chunks, of the highest cosine similarity to any answer sentence[0, 1]
CompletenessROUGE-L recall against the reference answer (not thresholded)Unchanged (ROUGE-L recall)[0, 1]
NLI FaithfulnessFraction 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

Metricv5–v6 Weightsv7 Weights (original)v7 Weights (re-evaluation)v8
Adherence0.300.300.350.35
Relevance0.250.250.250.25
NLI Faithfulness0.200.200 (zero weight)0
Utilization0.150.150.200.20
Completeness0.100.100.200.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 RankTechniqueAdherenceRelevanceUtilizationNLI Faith.CompletenessBest At
1semantic0.7330.5890.6460.3510.256Adherence
2sentence_window_30.6880.8080.8360.4080.235Coverage, NLI
3sentence_4000.6740.5710.5730.3360.261Completeness
4recursive_4000.6340.5240.5530.3130.259none

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)

ParameterFindingEffect
RerankingEnabled 0.682 adherence vs disabled 0.701Lower with reranking on ExpertQA; adherence difference not significant (p=0.166, Figure 6)
Hybrid retrievalDense: 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.836Window=1 for adherence, =3 for coverage
Top_k3→15: relevance 0.688→0.468; completeness 0.243→0.262top_k=5 is balanced
Prompt templateDefault > 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 threshold0.40→0.55: adherence 0.829→0.550Impactful but tradeoff with recall
Heatmap of the mean score of each chunking technique on each quality metric, shaded darker teal for higher means, in which completeness and NLI faithfulness are pale for every technique and the sentence-window technique is darkest on relevance and utilization.
Figure 1: Mean score per metric (0 to 1) for the four v5 techniques, 600 answers (150 per technique), NLI column re-scored with the entailment label. The highest mean on relevance, utilization and NLI faithfulness belongs to sentence_window_3, on adherence to semantic and on completeness to sentence_400.

Data plotted in Figure 1

TechniqueAdherenceNLI faithfulnessRelevanceUtilizationCompleteness
recursive_4000.6340.3130.5240.5530.259
semantic0.7330.3510.5890.6460.256
sentence_4000.6740.3360.5710.5730.261
sentence_window_30.6880.4080.8080.8360.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.

Grouped bar chart comparing dense and hybrid retrieval on each quality metric, with hybrid higher on relevance and utilization and lower on adherence, NLI faithfulness and completeness.
Figure 5: Mean score per metric (0 to 1) under dense and hybrid retrieval, over 1,200 v5 answers (600 each, pooled across the four techniques), NLI faithfulness re-scored with the entailment label. Each difference is tested with Welch’s t-test at p < 0.05, and all five have p < 0.001. Hybrid retrieval raises relevance (+0.115) and utilization (+0.226) on ExpertQA and lowers adherence (−0.080), NLI faithfulness (−0.063) and completeness (−0.042).

Data plotted in Figure 5

MetricDenseHybridΔ (hybrid − dense)Welch tp
Adherence0.6820.602−0.0805.341.1e-7
NLI faithfulness0.3520.289−0.0634.065.2e-5
Relevance0.6230.738+0.115−4.911.0e-6
Utilization0.6520.878+0.226−12.031.4e-31
Completeness0.2530.211−0.0426.693.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.

Grouped bar chart of mean adherence and mean relevance without and with reranking, both lower with reranking.
Figure 6: Mean adherence and mean relevance (0 to 1) without and with reranking, over 1,200 v5 answers (600 each way, pooled across the four techniques). Adherence is tested with Welch’s t-test at p < 0.05; relevance has no significance test in the source. On this dataset reranking lowers both, adherence by 0.019 (p = 0.166, not significant) and relevance by 0.095.

Data plotted in Figure 6

MetricNo rerankingWith rerankingΔ (with − without)p (Welch)
Adherence0.7010.682−0.0190.166
Relevance0.7180.623−0.095—

Relevance is informational in the source (construct-validity test 4) and has no significance test.

Bar chart of the ANOVA F statistic for each quality metric across the chunking techniques, sorted from highest to lowest, with utilization, relevance and adherence in green as significant and NLI faithfulness and completeness in red as not significant.
Figure 7: One-way ANOVA F statistic of each metric across the four v5 techniques, over 600 answers (150 per technique), NLI faithfulness re-scored with the entailment label. Green bars are significant after Bonferroni correction (p < 0.01, that is 0.05 over five metrics); the dashed F = 5 and F = 20 lines give effect-size context and are not the cutoff. Utilization, relevance and adherence separate the techniques, while corrected NLI faithfulness (F = 3.50, p = 0.015) and completeness (F = 1.77, p = 0.152) do not.

Data plotted in Figure 7

MetricFpSignificant (p < 0.01)
Utilization26.763.0e-16Yes
Relevance19.038.5e-12Yes
Adherence4.210.006Yes
NLI faithfulness3.500.015No
Completeness1.770.152No

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.

Strip plot of per-answer NLI faithfulness for each chunking technique, one dot per answer with a median line, showing scores spread across the whole range for every technique and the sentence-window technique highlighted in teal.
Figure 8: NLI faithfulness per answer, the share of its sentences supported by a retrieved chunk, over 600 v5 answers (150 per technique); a sentence counts as supported when its highest entailment probability is at least 0.5. Horizontal lines are medians, and the intervals in the table are 95% percentile bootstrap intervals of each mean (10,000 resamples); the plot carries no error bars. Only 23 of 600 answers (3.8%) score 1.0, against 533 of 600 (88.8%) as first published under the mis-read label, and sentence_window_3 has the highest mean (0.408).

Data plotted in Figure 8

TechniquenMeanMedianQ1Q395% CI of meanResponses at 1.0
recursive_4001500.3130.2500.1010.500[0.271, 0.356]6
semantic1500.3510.3330.1700.500[0.313, 0.389]2
sentence_4001500.3360.2730.1520.500[0.294, 0.379]7
sentence_window_31500.4080.3330.2000.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.

Grouped bar chart of mean adherence for each chunking technique under the chain-of-thought, default and detailed prompt templates, with confidence-interval whiskers, the default template highest for every technique.
Figure 9: Mean adherence (0 to 1) per prompt template and chunking technique, over 1,800 v5 answers (12 cells of 150); error bars are Student-t 95% confidence intervals of the mean. The default template scores highest for every technique, then the detailed template, then chain of thought; the detailed template was adopted after v6 on an apparent composite gain that the NLI correction removed (Section 4). The semantic default-template cell prints 0.732 here and 0.733 in Table T5 by rounding.

Data plotted in Figure 9

Prompt templateTechniquenMean adherence95% CI lower95% CI upper
Chain of thoughtsentence_window_31500.6140.5900.638
Chain of thoughtrecursive_4001500.5710.5460.596
Chain of thoughtsemantic1500.6410.6170.665
Chain of thoughtsentence_4001500.6170.5930.640
Defaultsentence_window_31500.6880.6460.729
Defaultrecursive_4001500.6340.5940.674
Defaultsemantic1500.7320.6970.768
Defaultsentence_4001500.6740.6350.712
Detailedsentence_window_31500.6630.6320.693
Detailedrecursive_4001500.6000.5740.625
Detailedsemantic1500.6950.6730.717
Detailedsentence_4001500.6510.6270.676

Construct Validity (v5): 4/5 Strict PASS

TestPredictionResultStatus
top_k increases → relevance decreasesMonotonic decrease0.688 → 0.468PASS
top_k increases → completeness increasesMonotonic increase0.243 → 0.262PASS
Reranking improves adherenceEnabled > disabled0.682 < 0.701FAIL
Smaller chunks → higher relevance200 > 400 > 6000.570 > 0.548 > 0.527PASS
Similarity threshold → adherence decreasesMonotonic decrease0.829 → 0.550PASS

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

  1. 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.
  2. 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)
  3. Reranking = investigate further: counterintuitive negative effect needs confirmation
  4. 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
  5. 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)

RankWindow SizeCompositeAdherenceRelevanceNLI Faith.UtilizationCompleteness
1=sw_10.6590.7660.7840.4320.8180.244
1=sw_20.6600.7390.8030.4420.8370.241
3sw_30.6500.6910.8170.4250.8680.234
4sw_40.6330.6620.8070.3920.8720.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)

ConfigurationCompositeAdherenceRelevanceNLI Faith.UtilizationCI (95%)
sw_1 + reranking=false0.7000.7850.9120.4290.849[0.679, 0.722]
sw_1 + template=detailed0.6540.7950.8300.2900.829n/a
sw_1 + default0.6590.7660.7840.4320.818n/a
sw_1 + reranking=true0.6590.7660.7840.4320.818n/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.

Bar chart of the mean composite score for each sentence-window size with confidence-interval whiskers, the smallest windows highlighted in teal as tied and the larger windows in gray slightly lower.
Figure 2: Mean composite score (v5 to v6 weights, corrected NLI) per window size, 800 answers (200 per size, top_k 5, reranking on); error bars are Student-t 95% confidence intervals of the mean. Window sizes 1 and 2 tie (0.659 and 0.660), and every interval overlaps every other.

Data plotted in Figure 2

Window sizenMean composite95% CI lower95% CI upper
12000.6590.6350.684
22000.6600.6340.686
32000.6500.6240.676
42000.6330.6040.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.

Small-multiple bar panels, one per quality metric, showing the mean score for each sentence-window size with darker teal for larger windows, adherence falling and utilization rising as the window grows.
Figure 10: Mean score per metric (0 to 1) for each sentence-window size, over 800 v6 answers (200 per size, top_k 5, reranking on), NLI faithfulness re-scored with the entailment label; darker bars are larger windows. Adherence falls as the window grows (0.766 to 0.662, the widest spread of any metric at 0.104) while utilization rises (0.818 to 0.872), and corrected NLI faithfulness varies by about 0.05, highest at window size 2.

Data plotted in Figure 10

Window sizeAdherenceRelevanceNLI faithfulnessUtilizationCompleteness
10.7660.7840.4320.8180.244
20.7390.8030.4420.8370.241
30.6910.8170.4250.8680.234
40.6620.8070.3920.8720.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.

Heatmap of the mean composite score for each combination of sentence-window size and top_k, shaded darker teal for higher means on a narrow range, with the largest window palest at every top_k.
Figure 11: Mean composite score (v5 to v6 weights, corrected NLI) for each combination of sentence-window size and top_k, over 3,200 v6 answers (16 cells of 200); the shading spans only the observed range, so small differences look large. All 16 cells fall between 0.631 and 0.665, and window size 4 is the lowest at every top_k.

Data plotted in Figure 11

Window sizetop_k 3top_k 5top_k 7top_k 10
10.6650.6590.6650.644
20.6620.6600.6580.653
30.6510.6500.6530.653
40.6350.6330.6370.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.

Grouped bar chart of mean composite score and mean relevance without and with reranking in the window-size round, both lower with reranking.
Figure 12: Mean composite score (corrected NLI) and mean relevance (0 to 1) without and with reranking, over 1,600 v6 answers (800 each way, pooled across window sizes 1 to 4). Reranking lowers the composite by 0.037 and relevance by 0.103, the same direction as in v5 (Figure 6); neither difference has a significance test in the source.

Data plotted in Figure 12

MetricNo rerankingWith rerankingΔ (with − without)
Composite score0.6880.651−0.037
Relevance0.9060.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.

Diverging heatmap of the log Bayes factor for each window-size pair and metric, teal where the evidence favors a difference and red where it favors none, with nearly every cell pale red and adherence the only column with teal cells.
Figure 13: Bayes factor for a difference between two sentence-window sizes, as log10 BF10 (BIC approximation from Welch’s t), for six window-size pairs on six metrics, over 800 v6 answers (200 per size, 400 per comparison; corrected NLI). A log10 BF10 of 0.48 (BF10 = 3) is moderate and 1.0 (BF10 = 10) strong evidence of a difference, and −0.48 and −1.0 the same for no difference; teal favors a difference, red favors none. Only adherence for window size 1 against 4 (2.49, BF10 = 308.6) reaches strong evidence of a difference, while corrected NLI faithfulness and the composite favor no difference in all six pairs.

Data plotted in Figure 13

Window-size pairAdherenceNLI faithfulnessRelevanceUtilizationCompletenessComposite score
1 vs 2−1.00−1.28−1.23−1.19−1.29−1.30
1 vs 30.89−1.29−1.08−0.50−1.12−1.25
1 vs 42.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 40.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)

TestPredictionResultStatus
top_k increases → relevance decreasesMonotonic decrease0.822 → 0.751PASS
top_k increases → completeness increasesMonotonic increase0.224 → 0.253PASS
Window size increases → NLI decreasesMonotonic decrease0.432, 0.442, 0.425, 0.392 (not monotonic)FAIL
Window size increases → adherence decreasesMonotonic decrease0.766 → 0.662PASS
Reranking impacts relevance (info)DirectionalConfirmedPASS
Reranking impacts composite (info)Directional0.651 on vs 0.688 offPASS

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):

MetricCeiling %Assessment
NLI Faithfulness9.0% (71.6% as published)Acceptable
Relevance66.9%Unacceptable
Utilization66.8%Unacceptable
Adherence29.6%Acceptable
Completeness0.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

  1. 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
  2. Reranking = disabled: confirmed negative effect, unchanged by the correction
  3. Template = detailed: retained on an apparent +0.024 gain that the NLI correction removed (0.005 lower than the default at window size 1)
  4. top_k = 5: flat region, no need to change
  5. 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.

ConfigTemperatureMax TokensTop_kTemplateWhat it tests
anchor_detailed0.15125detailedBaseline (anchor)
maxtok_7680.17685detailedMore generation budget
topk_30.15123detailedFewer, higher-quality chunks
topk_70.15127detailedMore context coverage
temp_greedy0.05125detailedDeterministic decoding
grounded_detailed0.15125grounded_detailedGrounding-focused template
precise0.15125preciseAdherence-maximizing template
structured0.15125structuredStructured 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

MetricBinary MeanBinary CeilingContinuous MeanContinuous CeilingChange
Adherence0.75522.8%0.6160.0%Ceiling eliminated
Relevance0.91286.7%0.5810.0%Ceiling eliminated
Utilization0.92780.7%0.7530.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

ConfigBinary RankBinary CompositeContinuous RankContinuous CompositeRank Change
topk_310.83210.5830
maxtok_76820.83220.5820
temp_greedy30.83130.5800
anchor_detailed40.83040.5790
grounded_detailed50.82460.571−1
topk_760.81950.574+1
precise70.79670.5550
structured80.78980.5520

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.

Histogram panels for adherence, relevance and utilization, each overlaying the binary score distribution as a dark outline that piles up at the maximum and the continuous distribution in teal that spreads across the middle of the scale.
Figure 3: Per-answer adherence, relevance and utilization (0 to 1) under the binary (dark outline) and continuous (teal) formulations, 1,598 v7 answers; the ceiling is a score of 0.999 or above, and the intervals in the table are 95% bootstrap intervals of each mean. Binary scoring puts 22.8%, 86.7% and 80.7% of the 1,598 scores at the ceiling, and continuous scoring puts none there.

Data plotted in Figure 3

MetricFormulationnMeanMedianQ1Q395% CI of meanAt ceiling (%)
AdherenceBinary1,5980.7550.7370.6670.909[0.746, 0.763]22.8
AdherenceContinuous1,5980.6160.6010.5580.671[0.611, 0.620]0.0
RelevanceBinary1,5980.9121.0001.0001.000[0.899, 0.924]86.7
RelevanceContinuous1,5980.5810.5800.5030.661[0.576, 0.587]0.0
UtilizationBinary1,5980.9271.0001.0001.000[0.918, 0.936]80.7
UtilizationContinuous1,5980.7530.7610.7190.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.

Horizontal bar chart ranking the configurations by mean continuous composite score, with standard-deviation whiskers that overlap across all of them.
Figure 14: Mean continuous composite score (0.35 adherence, 0.25 relevance, 0.20 utilization, 0.20 completeness; no NLI term) per configuration, over 1,598 v7 answers (199 or 200 per configuration); error bars are ±1 standard deviation of the per-answer composite, not confidence intervals. The eight means span 0.031 (0.552 to 0.583) with every whisker overlapping every other, and the original binary composite, recomputed with the corrected NLI and shown in the table only, spans 0.055.

Data plotted in Figure 14

ConfigurationnMean (continuous)SDBinary composite mean
topk_32000.5830.0600.699
maxtok_7682000.5820.0580.692
temp_greedy2000.5800.0600.694
anchor_detailed1990.5790.0600.693
topk_71990.5740.0630.680
grounded_detailed2000.5710.0760.691
precise2000.5550.0900.671
structured2000.5520.0510.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:

TestBinary ResultContinuous 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

  1. Continuous metrics adopted: binary formulations permanently retired
  2. 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)
  3. Top-4 cluster identified: topk_3, maxtok_768, temp_greedy, anchor_detailed
  4. Need a new discriminator: automated composite cannot break the tie
  5. 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:

MetricValueThresholdStatus
Cohen’s kappa (linear-weighted)0.469 [0.238, 0.665]≥ 0.6Soft FAIL
MAE0.580≤ 1.0PASS
Within-1 agreement88%n/aStrong
Spearman rho0.509n/ap=0.00016
Parse rate100%> 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)

ConfigComposite RankCompositeAR RankAR MeanAR StdTop-4?
topk_310.58374.2250.899Yes
maxtok_76820.58224.3650.803Yes
temp_greedy30.58034.3100.792Yes
anchor_detailed40.57964.2460.844Yes
topk_750.57444.2810.786No
grounded_detailed60.57154.2651.020No
precise70.55584.0451.204No
structured80.55214.4400.831No

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)

PairMean DiffPaired dp (Holm)Significant?
maxtok_768 > anchor_detailed+0.1160.2210.014Yes
maxtok_768 > topk_3+0.1400.2180.013Yes
maxtok_768 > temp_greedy+0.0550.1020.305No
temp_greedy > anchor_detailed+0.0650.1250.267No
temp_greedy > topk_3+0.0850.1310.291No
anchor_detailed > topk_3+0.0250.0380.566No

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).

Horizontal bar chart ranking every configuration by mean judge-rated helpfulness with confidence-interval whiskers, the finalists from automated testing in teal and the rest in gray.
Figure 4: Mean answer relevance (1 to 5) per configuration, 1,598 rated answers (199 or 200 each); error bars are 95% normal-approximation confidence intervals of the mean, and teal marks v7’s top-4 cluster. The structured configuration, outside that cluster, has the highest mean (4.44); Figure 16 compares the four teal configurations directly.

Data plotted in Figure 4

ConfigurationnMean95% CI lower95% CI upperTop-4 cluster
structured2004.444.324.56No
maxtok_7682004.374.254.48Yes
temp_greedy2004.314.204.42Yes
topk_71994.284.174.39No
grounded_detailed2004.274.124.41No
anchor_detailed1994.254.134.36Yes
topk_32004.234.104.35Yes
precise2004.053.884.21No

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.

Strip plot of judge answer-relevance ratings for each configuration, one jittered dot per answer at each integer rating with a median tick, the finalists from automated testing in teal.
Figure 15: Answer-relevance ratings (integer 1 to 5 judge scale) per configuration, one dot per answer, over 1,598 rated v8 answers (199 or 200 per configuration); horizontal ticks are medians, teal marks v7’s top-4 cluster, and the intervals in the table are 95% percentile bootstrap intervals of each mean (10,000 resamples), the plot carrying no error bars. Every configuration’s median is 4 or 5, and the four teal distributions overlap heavily with the other four. Figures 4 and 15 round the same means differently (4.05 against 4.04 for precise, 4.23 against 4.22 for topk_3); one rounding convention will be applied at the next regeneration.

Data plotted in Figure 15

ConfigurationnMeanMedianQ1Q395% CI of meanTop-4 cluster
anchor_detailed1994.254.004.005.00[4.13, 4.36]Yes
grounded_detailed2004.265.004.005.00[4.12, 4.40]No
structured2004.445.004.005.00[4.32, 4.55]No
precise2004.045.003.005.00[3.88, 4.21]No
topk_32004.224.004.005.00[4.10, 4.35]Yes
topk_71994.284.004.005.00[4.17, 4.39]No
temp_greedy2004.314.004.005.00[4.20, 4.42]Yes
maxtok_7682004.375.004.005.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.

Horizontal bar chart of mean answer relevance for the finalists from automated testing with standard-deviation whiskers, the selected configuration highlighted in teal at the top.
Figure 16: Mean answer relevance (1 to 5) for the four configurations of v7’s top-4 cluster, over 799 rated answers (199 or 200 per configuration); the Friedman test across the four counts as significant at p < 0.05, and error bars are ±1 standard deviation of the per-answer rating, not confidence intervals. On the 199 questions rated under all four the test gives χ² = 12.41, p = 0.006, and maxtok_768, the selected configuration (teal), has the highest mean (4.37).

Data plotted in Figure 16

ConfigurationnMeanSDSelected
maxtok_7682004.370.80Yes
temp_greedy2004.310.79No
anchor_detailed1994.250.84No
topk_32004.220.90No

Friedman χ² = 12.41, p = 0.006, n = 199 questions rated under all four.

Scatter panels plotting the judge’s answer-relevance rating against each continuous automated metric, one jittered point per answer, each panel titled with its rank correlation.
Figure 17: Spearman rank correlation (ρ) between the 1 to 5 answer-relevance rating and each continuous automated metric, one point per answer, over 1,598 rated v8 answers pooled across the eight configurations; ratings are jittered vertically for display, and the intervals in the table are 95% percentile bootstrap intervals of each mean (10,000 resamples). All five correlations are modest, strongest for the composite (ρ = 0.331) and weakest for completeness (ρ = 0.088), so the judge’s rating is not a proxy for any one automated metric.

Data plotted in Figure 17

MetricSpearman ρpnMeanMedianQ1Q395% CI of mean
Adherence0.2563.1e-251,5980.6160.6010.5580.671[0.611, 0.620]
Relevance0.2443.8e-231,5980.5810.5800.5030.661[0.576, 0.587]
Utilization0.2267.0e-201,5980.7530.7610.7190.802[0.749, 0.756]
Completeness0.0884.5e-41,5980.3040.2910.2210.365[0.298, 0.310]
Composite0.3313.5e-421,5980.5720.5720.5330.616[0.569, 0.575]
Answer relevance (1–5, y-axis)——1,5984.275.004.005.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:

MetricSpearman rho
Composite (continuous)0.331
Adherence0.256
Relevance0.244
Utilization0.226
Completeness0.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.

TestPredictionResultStatus
precise < anchor (AR)Constrained template → lower helpfulness4.045 < 4.246 (−0.201)PASS
grounded < anchor (AR)Grounded template → lower helpfulness4.265 > 4.246 (+0.019)FAIL
structured vs anchor (AR) (info)Direction only4.440 > 4.246 (+0.194)PASS
AR tracks completeness more than adherence (info)rho(AR, completeness) > rho(AR, adherence)0.088 < 0.256FAIL

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:

ChangeVersionEvidenceImpact
Completeness flagged as non-discriminatingv5ANOVA F=1.77, p=0.15, η²=0.009Flagged; retained, and discriminated strongly among the v7 generation configs
NLI faithfulness given zero weightv7Apparent 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 formulationv72 metrics above a two-thirds ceiling (relevance 86.7% and utilization 80.7% of 1,598 answers; adherence 22.8%); 0/2 validity → 2/2Full discrimination restored
Answer relevance addedv8Top-4 composite plateau (spread 0.004)Broke tie, identified maxtok_768
Completeness discriminates among generation configsv7Friedman χ²=785.22, η²=0.175; metric unchanged (ROUGE-L), v7 varied templates and token budgetsWeight increased 0.10 → 0.20
Composite weights redistributedv7NLI given zero weight, completeness reweightedStronger 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

VersionStrict TestsPassRateNotes
v55480%Reranking test failed (dataset-specific)
v64375%4 of 4 as published; the window-size NLI prediction fails on the corrected scores (5 of 6 overall)
v7 (binary)200%Ceiling effects masked all signals
v7 (continuous)22100%Measurement reform recovered validity
v82150%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

TransitionComposite ChangeAR ChangeEffort
v5 → v6+0.041 (reranking=false, window size 1)n/a5,597 requests
v6 → v7+0.022 as published (binary scale, best per round); −0.001 with corrected NLI (0.700 → 0.699)n/a1,598 + re-eval
v7 top-40.004 spread (plateau)n/aIdentified ceiling as cause
v8 maxtok_768−0.001 vs topk_3+0.140 vs topk_31,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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. 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

ParameterValueSource VersionEvidence
Techniquesentence_windowv5Best coverage-fidelity tradeoff (coverage d=0.64 to 0.65, Medium; corrected NLI also favors sentence_window, d=0.22)
Window size1v6Composite 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
Rerankingdisabledv5, v6v5: 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_k5v6v6: 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
Retrievaldense onlyv5Hybrid: adherence −0.080, corrected NLI −0.063 (600 answers each; published as −0.309 NLI)
Prompt templatedetailedv6, v7Retained 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 tokens768v7, v8AR 4.365 (#2); composite 0.582 (#2)
Temperature0.1v7Default; negligible difference vs 0.0
System prompt/no_thinkv7All 8 v7 configs used /no_think (workflow default)
Similarity threshold0.45v5ExpertQA-calibrated (mean sim 0.440)

Expected Performance

MetricExpected ValueSource
Composite (continuous)0.582v7 config_ranking_continuous.json
Adherence (continuous)0.608v7 config_ranking_continuous.json
Relevance (continuous)0.581v7 config_ranking_continuous.json
Utilization (continuous)0.768v7 config_ranking_continuous.json
Completeness0.354v7 config_ranking_continuous.json
Answer Relevance4.365 / 5.0v8 config_ranking.json
95th pct latency39.8sv7 maxtok_768 run (end-to-end, up to 8 requests in flight)
Failed attempts0 of 200v7 maxtok_768 run; 78 of 14,623 attempts (0.5%) across v5–v7 (Section 2.1)

Table T13: Finalist Comparison

ConfigComp. RankCompositeAR RankAR MeanMean LatencyFailedKey Differentiator
maxtok_76820.58224.36528.5s0/200+256 tokens → AR gain
topk_310.58374.22523.6s0/200Best composite, weak AR
temp_greedy30.58034.31023.6s0/200Deterministic; no sig. edge
anchor_detailed40.57964.24627.2s1/200Baseline anchor config
structured80.55214.44014.3s0/200Best 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:

  1. Composite: Rank #2 (0.582), within 0.001 of the best (topk_3, 0.583). The difference is not statistically significant (p > 0.8).
  2. 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).
  3. 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.
  4. 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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. 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.
  9. 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.
  10. 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).
  11. 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.
  12. 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.
  13. 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.
  14. 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).
  15. 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.
  16. 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.
  17. 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.
  18. 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

FileVersionContent
results/v5/v5_session1_analysis/session_1_analysis.mdv5Full statistical analysis (77 PNGs, 23 JSONs)
results/v6/v6_session1_analysis/session_1_analysis.mdv6Window size analysis (78 artifacts)
results/v7/v7_reevaluation_analysis/reevaluation_analysis.mdv7Binary vs continuous comparison
results/v8/v8_judge_analysis/judge_analysis.mdv8Answer relevance analysis

Key Data Files

FileVersionContent
results/v7/.../config_ranking_continuous.jsonv7Continuous composite rankings (8 configs)
results/v7/.../formulation_comparison.jsonv7Ceiling rates and F-statistics
results/v8/.../config_ranking.jsonv8AR rankings (8 configs)
results/v8/.../top4_discrimination.jsonv8Friedman + pairwise tests
results/v8/.../construct_validity.jsonv84 construct validity tests (2 strict, 2 informational)
results/v8/.../metric_correlations.jsonv8AR vs automated metric correlations
results/v8/.../discrimination.jsonv8Overall Friedman (all 8 configs)

Design Documentation

FileVersionContent
documentation/260311_01_.../design_analysis.mdv5Approved design (4 techniques, 8 sweeps)
documentation/260313_01_.../design_analysis.mdv6Approved design (4 window sizes, 3 sweeps, 28 cells)
documentation/260314_01_.../design_analysis.mdv7Re-evaluation methodology
documentation/260315_01_.../design_analysis.mdv8AR 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

ScoreAnchor
1Completely unhelpful: response is irrelevant, incoherent, or empty
2Mostly unhelpful: response touches the topic but fails to address the question
3Partially helpful: response addresses some aspects but misses key parts or is vague
4Mostly helpful: response addresses the question well with minor gaps or unnecessary content
5Fully helpful: response directly and completely addresses the question using the provided context

Evaluation Criteria

  1. Does the response directly answer the user’s question?
  2. Does the response use the provided context effectively?
  3. Is the response appropriately detailed (not too brief, not excessively verbose)?
  4. 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

  1. Malaviya et al. (2023). ExpertQA: Expert-Curated Questions and Attributed Answers. arXiv:2309.07852
  2. 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.