Modern Information Retrieval Evaluation In The RAG Era

4 Jul 2025 · 57 min
57:23

Nandan, a PhD student at Waterloo, argues that traditional IR metrics like NDCG don't work for RAG systems, which need to retrieve diverse evidence for LLMs, not ranked lists. He introduces FreshStack, a benchmark using real Stack Overflow questions that measures diversity, factual coverage, and recall. Current retrievers like BM25 and dense models all underperform against the oracle.

Questions this video answers

Nandan explains that FreshStack mixes code and text (e.g., Jupyter notebooks, documentation). Text retrieval models perform well on generic text, but niche or private domains (e.g., personal email archives) remain challenging. The framework is generalizable: one can construct a small test collection for any domain by gathering queries, answers, and a corpus, then apply the same nugget‑based evaluation.

Nandan advises mimicking FreshStack’s approach but tailoring the dimensions to the use‑case. For patent search, recall is paramount; for finance or multi‑aspect questions, diversity and grounding matter more. Weighting can be equal by default, but practitioners should adjust based on domain priorities.

Nandan notes surprising findings: OpenAI text embeddings rank low, even below BM25, while newer dense models (QuEN‑3, Voyage, Stella) perform strongly. Closed‑source models once dominated, but open‑source models are now competitive. The leaderboard reflects recent community focus on realistic, code‑text tasks rather than classic text‑only benchmarks.

Nandan says that current FreshStack evaluations use the original query directly. Emerging approaches that decompose complex queries into sub‑queries or employ late‑interaction models could improve performance, especially on long, reasoning‑heavy questions. However, FreshStack has not yet incorporated such pipelines, so future leaderboard updates may show gains for methods that break queries into smaller components and perform multi‑step retrieval.

Nandan is nearing the end of his PhD and is focusing on creating realistic synthetic training data for RAG systems. He is also a maintainer of the TREC‑RAG (Trek‑RAG) competition, which will introduce more reasoning‑intensive queries and adopt the diversity‑based metrics introduced in FreshStack.

Chapters

More from Hamel

0:31
youtube.com

Not Every Bug Needs an Eval

1d ago
47:59
youtube.com

Can Claude Build Your Evals?

1d ago
0:46
youtube.com

How to Get Your Team to Care About Evals

2d ago
12:47
youtube.com

7 Most Common AI Eval Mistakes (From Teaching 5K+ Engineers & PMs)

2d ago
40:01
youtube.com

How To Test AI Agents With Simulations

4d ago
0:43
youtube.com

Why Your LLM Judge Should Say Pass or Fail, Not 1 to 5

5d ago
0:39
youtube.com

Don't Just Slap a Chatbot on Your Product

6d ago
19:56
youtube.com

Is Opus 5.5 Better At Writing?

6d ago
1:22
youtube.com

How to Do Error Analysis When You Can't Look at the Data

1w ago
13:24
youtube.com

I Ranked Every AI Eval Concept From Worst to Best

1w ago
0:38
youtube.com

Why We Tell People to Read 100 Traces

1w ago
See all content