Skip to main content

7 docs tagged with "Retrieval"

View all tags

14. Multi-Query RAG

One question, many phrasings — generating query variants to widen recall and catch chunks a single wording would miss.

15. Reciprocal Rank Fusion

How to merge multiple ranked result lists into one — the RRF formula, why it drops scores and keeps ranks, and a clean implementation.

16. Hybrid Search

Combining dense (vector) and keyword (BM25) retrieval so you get both semantic recall and exact-match precision.

3 · Retrieval (RAG) — Overview

Part 3 of the learning path — Retrieval-Augmented Generation in 17 sections, from first principles to production retrieval, each with summary points, code, and diagrams.

4. Document Retrieval

Implementing the retriever — embedding the query, finding the nearest chunks, and the top-k / threshold knobs that control quality.

5. Cosine Similarity

The math that ranks chunks — cosine similarity, why it ignores magnitude, and why normalized vectors let you use a fast dot product.