Retrieval & RAG

Vector stores, hybrid retrieval and reranking, and when to retrieve instead of fine-tune.

10concepts
74flashcards
84minutes of reading
  1. 01 Chunking Strategies for Retrieval Why the unit you index decides the ceiling on retrieval quality, how fixed, recursive, semantic and contextual chunking differ, and what each one loses. intermediate 8m 10 cards
  2. 02 Fine-tuning vs RAG When to teach the model new behaviour vs when to retrieve fresh context at runtime. intermediate 8m 4 cards
  3. 03 Hybrid Retrieval - BM25 + Vector + Reranking Why pure vector search misses exact-match queries, how RRF combines lexical and semantic results, and where a cross-encoder reranker buys back the precision you lost. intermediate 8m 5 cards
  4. 04 Query Transformation for Retrieval Why the user's question is often a bad search query, and how rewriting, decomposition, multi-query fan-out and HyDE close the gap between how people ask and how documents are written. intermediate 8m 8 cards
  5. 05 RAG Evaluation and Groundedness How to separate retrieval failures from generation failures, which metrics actually diagnose each stage, and why groundedness is measurable while helpfulness mostly is not. intermediate 9m 10 cards
  6. 06 Reranking and Cross-Encoders Why a second-stage model that reads the query and document together fixes most retrieval failures, what it costs in latency, and how to size the candidate set. intermediate 8m 8 cards
  7. 07 Retrieval Augmented Generation The end-to-end RAG pipeline from chunking through retrieval, reranking, and grounded generation. intermediate 9m 5 cards
  8. 08 Vector Databases Compared - pgvector, Qdrant, Milvus, Weaviate, LanceDB A practitioner's guide to picking a vector store, weighing index trade-offs against the operational cost of running yet another database alongside your primary store. intermediate 9m 6 cards