RAG, measured

Order and reranking

The search hands over its passages in an order, and the model reads the first few. Putting the right passage first can matter as much as finding it.

Between the search and the model

Candidates20 per searchReordera rule or a rerankerFirst passages3 or 5 sentAnswerlesson 7Candidates20 per searchReordera rule or a rerankerFirst passages3 or 5 sentAnswerlesson 7
The search returns 20 candidates per search. Something reorders them, and only the first few are sent.

Five orders

OrderHow it ranksRight answers, 5 passagesRight answers, 3 passages
Search orderAs the search scored them47 in 10040 in 100
Page type firstA rule, no model: pages that print the statement the hints name go first55 in 10048 in 100
Large rerankerA second model reads the question with each passage and scores the pair58 in 10054 in 100
Page type, then rerankerThe rule's groups, the reranker's order inside each56 in 10058 in 100
Small rerankerThe same idea with a much smaller modelNot run: it pushed right pages outNot run
FinanceBench: 150 questions over 84 annual reports, after the planning step. Answers by Qwen3-8B, checked against the reference.

One question, four orders

The right page was among the passages every time. Only its place changed.

As of FY 2021, how much did Verizon expect to pay for its retirees in 2024?

Reference answer: The estimated pension benefits were $1097 million, and the estimated health care and life insurance benefits were $862 million.

  1. Search order, 5 passagesWrong

    Based on the provided context, there is no specific information indicating how much Verizon expected to pay for its retirees in 2024. The context mentions that postretirement benefit payments include estimated future payments and that these estimates are subject to change based on changes to assumptions and future plan performance [2]. However, it does not provide a specific figure for the year 2024. Therefore, I don't know the exact amount Verizon expected to pay for its retirees in 2024.

  2. Page type first, 5 passagesWrong

    Based on the provided context, there is no specific information indicating how much Verizon expected to pay for its retirees in 2024. The context mentions that postretirement benefit payments include estimated future payments and that these estimates are subject to change based on changes to assumptions and future plan performance [2]. However, it does not provide a specific figure for the year 2024. Therefore, I don't know the exact amount Verizon expected to pay for its retirees in 2024.

  3. Large reranker, 5 passagesRight

    As of FY 2021, Verizon expected to pay $1,097 million for pension benefits and $862 million for health care and life benefits to its retirees in 2024 [2].

  4. Page type, then reranker, 3 passagesRight

    As of FY 2021, Verizon expected to pay $1,097 million for pension benefits and $862 million for health care and life benefits to its retirees in 2024 [2].

From the run of 15 October 2026: the model's real answers, judged against the reference.

What a better order bought

−39%

Page type first, then the reranker, sending 3 passages: 58 right answers in 100, against 55 for the best order before, which sent 5. The model read 39% less.

FinanceBench: 150 questions over 84 annual reports, answers by Qwen3-8B. 780 prompt tokens against 1,276.

Two limits. The page type rule was written for US annual reports while looking at this same test, and has not been checked on other documents. The small reranker made things worse: it prefers pages that talk about the idea a question names over the statement that holds the figure.

One question to ask your team

Do we pay to send the model every passage the search finds, or the best few in a good order?
For engineers

The settings behind the lesson.

  • Large reranker: bge-reranker-v2-m3 (568M), a cross-encoder scoring the query plus the planner's hints against each of the 20 candidates, fp16, max_length 512, batches of 8. It adds about 0.3 s per question (median 277 ms to 580 ms) and 1.4 GB of GPU memory.
  • Page type rule: a page prints a statement when its first 300 characters name the balance sheet, the income statement or the cash flow statement and over 8% of its characters are digits. Three regular expressions, no model, no extra call.
  • Questions with the right page in the first 5 passages, of 150: search order 93, small reranker (ms-marco-MiniLM-L6-v2, query alone) 82, large reranker 97, page type first 107.
  • One passage stays unsafe: with the reranker first, the model says it does not know for 41% of the questions.