RAG, measured

RAG, measured

A free course on how AI search over your documents works, and how to check it.

Built on 150 questions asked of 84 annual reports, with every answer checked.

  • 3M, 2018, Form 10-K
  • Amazon, 2019, Form 10-K
  • Netflix, 2017, Form 10-K
  • Microsoft, 2023, Form 10-K
  • JPMorgan Chase, 2022, Form 10-K
Five of the 84 reports: the 10-K filings of 3M, Amazon, Netflix, Microsoft and JPMorgan.

One question, four answers

The same question about 3M's 2018 report, sent through four versions of one pipeline. Pick one.

What is the year end FY2018 net PPNE for 3M? Answer in USD billions.

Reference answer: $8.70 billion. PPNE is property, plant and equipment.

Purchases of property, plant and equipment(1,577)It found the right report, then took the wrong line: money spent on new equipment in 2018, page 60.Lesson: The question

FinanceBench: 150 questions over 84 annual reports. Qwen3-8B answers from 5 passages; each answer is checked against the reference. One run, 17 October 2026.

The course

In the order a question travels, from the report it reads to the answer you check.

  1. What RAG isSearch first, then answer from what was found.
  2. DocumentsTurning a PDF into text without losing its tables.
  3. ChunksCutting a report into passages a search can return.
  4. EmbeddingsTurning text into numbers that measure meaning.
  5. SearchFinding the passages closest to the question.
  6. The questionRewriting the question so the search knows where to look.
  7. Order and rerankingPutting the best passage first.
  8. The answerWriting the reply from the passages, and only from them.
  9. Measure itChecking right or wrong on questions with known answers.
  10. Every setting, comparedEvery setting at once, with the results I measured.
  11. QuizNine questions to check it landed.
  12. PlaygroundYour own document, cut, searched and answered.