Optimizing the R in RAG: Hybrid Search Is Just The Beginning

17 Apr 2025 · 54 min
53:58

Doug Turnbull explains hybrid search, which combines keyword and vector retrieval for production RAG systems. He covers query understanding with LLMs, pre-filtering in vector databases, and tuning hybrid scoring with real examples on furniture data. The session includes practical advice on scaling filters in Qdrant and Pinecone, and evaluating results without a golden dataset.

Questions this video answers

Post‑filtering is a safety net for rare removals; pre‑filtering should be used to guarantee the right mix of candidates early, especially when you need hard filters (e.g., department, product name) to appear in the top‑k before re‑ranking.

Use tiering: keep scores on a comparable scale (e.g., -1 to 1 for cosine) and apply a stepwise boost (e.g., multiply BM25 by 10) or add a fixed boost for exact phrase matches. Hyper‑parameter search can tune the multiplier.

Run side‑by‑side comparisons (Pepsi‑Coke challenge), use LLMs as judges after building a small golden set for calibration, and perform sense‑checks focusing on tail cases rather than average NDCG changes.

Chapters

More from Hamel

0:31
youtube.com

Not Every Bug Needs an Eval

2d ago
47:59
youtube.com

Can Claude Build Your Evals?

2d ago
0:46
youtube.com

How to Get Your Team to Care About Evals

3d ago
12:47
youtube.com

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

3d ago
40:01
youtube.com

How To Test AI Agents With Simulations

5d ago
0:43
youtube.com

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

6d ago
0:39
youtube.com

Don't Just Slap a Chatbot on Your Product

1w ago
19:56
youtube.com

Is Opus 5.5 Better At Writing?

1w 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