Lesson 7 of 11 · 2 min
Retrieval Strategies
- Dense retrieval (semantic): Cosine similarity between embeddings — captures meaning
- Sparse retrieval (BM25/keyword): Term frequency matching — captures exact words
- Hybrid: Combine both for best of both worlds
- MMR (Maximal Marginal Relevance): Balances relevance with diversity of retrieved chunks
