RAG, measured

Every setting, compared

Every switch of the course in one place. Each click shows what I measured for that setting, on 150 questions over 84 annual reports.

The whole route

ReadPDF to textCutinto passagesEmbedtext to numbersStorethe indexQuestionas typedPlanrewrite itSearch20 candidatesReorderbest firstSendthe first fewAnswerwith sourcesReadPDF to textCutinto passagesEmbedtext to numbersStorethe indexQuestionas typedPlanrewrite itSearch20 candidatesReorderbest firstSendthe first fewAnswerwith sources
One report, then one question, through every stage of the course. A drawing, not a run: the shapes stand for a page, its passages and their numbers.

The pipeline, switch by switch

Right page among the passages sent: 105 of 150. Right answer: 87 of 150.

  1. Read

    Text taken from the PDF with pypdfium2, the same for every setting

  2. Cut

    How long each passage is, and whether it starts with the report's name

    Passage size
    Report name in each passage
  3. Embed

    The model that turns each passage into numbers

    Embedder
  4. Store

    43,902 passages, 67 MB of numbers

  5. Plan

    A model rewrites the question, picks the reports and names the statement to look for

    Plan the search
  6. Search

    How the 20 candidates are found

    Search
  7. Reorder

    What puts the best candidates first

    Reorder
  8. Send

    How many passages the model reads

    Passages sent
  9. Answer

    Qwen3-8B on a laptop, judged against the reference

    Thinking first

105 of 150

Right page among the passages sent

87 of 150

Right answer

From the answers run of October 15, 2026.

Each dot is a question. Filled: its right page was sent. A dark centre: the answer was right. Pick one to read it.

One question

1 / 150

What is the FY2018 capital expenditure amount (in USD millions) for 3M? Give a response to the question by relying on the details shown in the cash flow statement.

Reference answer
$1577.00
Right page
3M 2018 10K, page 60
Right page among the passages sent
Sent as passage 2

Passages sent

  1. 3M 2018 10K, page 46

    3M 2018 10K earlier in the “Financial Condition and Liquidity” section. In 2017, cash flows provided by operating activities decreased $422 million compared to the same period last year. Factors that decreased operating cash flows were incr

  2. 3M 2018 10K, page 60

    3M 2018 10K Table of Contents 3M Company and Subsidiaries Consolidated Statement of Cash Flows Years ended December 31 (Millions) 2018 2017 2016 Cash Flows from Operating Activities Net income including noncontrolling interest $ 5,363 $ 4,8

  3. 3M 2018 10K, page 60

    3M 2018 10K Cash Flows from Investing Activities Purchases of property, plant and equipment (PP&E) (1,577) (1,373) (1,420) Proceeds from sale of PP&E and other assets 262 49 58 Acquisitions, net of cash acquired 13 (2,023) (16) Purchases of

Saved answer for this setting

Right · October 15, 2026

The FY2018 capital expenditure amount for 3M is $1,577 million, as indicated by the "Purchases of property, plant and equipment (PP&E)" line in the cash flows from investing activities section [3].

Does it hold elsewhere?

The explorer runs on one test. These are the same choices measured on a second one.

ChoiceOn FinanceBenchOn another testVerdict
Both searches, not meaning alone (lesson 4)Right page in the 5 sent: 88 to 93 of 150FiQA 0.388 to 0.383, SciFact 0.717 to 0.718About the same elsewhere
Base embedder, not small (lesson 3)Right page in the top 10: 71 to 81 of 150SciFact 0.718 to 0.748Holds, smaller gain
The plan rewrites the question (lesson 5)Right page in the top 10: 71 to 113 of 150MTRAG conversations 0.297 to 0.372Holds
The plan adds search hints (lesson 5)Right page in the top 10: 71 to 81 of 150MTRAG conversations 0.372 to 0.340Doesn't hold
The reranker (lesson 6)Right page first: 34 to 45 of 150FiQA 0.383 to 0.416, SciFact 0.718 to 0.742; TAT-DQA right page first: 56 to 61 of 137Holds
The page type rule (lesson 6)Right page first: 34 to 63 of 150TAT-DQA right page first: 56 to 47 of 137Doesn't hold
Each row is before and after on the same test, never one test against another. FinanceBench: 150 questions over 84 annual reports. FiQA: finance forum questions. SciFact: science claims. MTRAG: questions inside conversations. TAT-DQA: 137 questions over 28 other annual reports. FiQA, SciFact and MTRAG give nDCG@10, from 0 to 1: how high the right documents rank.

How to read it

What each cut stores

CutPassagesSmall embedderBase embedder
128 tokens, with the name103,819159 MB319 MB
128 tokens, without94,772146 MB291 MB
256 tokens, with the name43,90267 MB135 MB
256 tokens, without42,52065 MB131 MB
512 tokens, with the name23,13636 MB71 MB
512 tokens, without22,85335 MB70 MB
Passages for the 84 reports, and the space their numbers take at 4 bytes each.
For engineers

How the grid was made.

  • Search: hybrid adds 1/(60 + rank) from the vector list and 0.1/(60 + rank) from BM25; keywords is BM25 alone, meaning the vectors alone. 20 candidates per search, 5 passages kept; 1, 2 and 3 are the first of those 5.
  • Plan: each question's saved searches (rewritten query, reports, hints) from the cache of the answers runs. No model was called to make the grid.
  • Reorder: the page type rule and bge-reranker-v2-m3 of lesson 6, the reranker scoring the query with the plan's hints.
  • The grid ran every setting again, then checked itself: every setting an earlier run had measured gave the same count, question by question.
  • Answers: Qwen3-8B (Q4), 512 output tokens, thinking off unless the switch is on. Answer runs exist only on the 256-token cut with the name, the small embedder and hybrid search.