Tutorvo

Approximate Search: Recall@k vs Exact Search and the Speed Trade-off

Lesson 6 of 815 minLab

This lesson is part of the course

In this lesson

You compare an approximate nearest-neighbour (ANN) index with exact search for six test queries, compute recall@5 per query and on average, then pick the fastest index setting that reaches a 95% recall target.

Buy the course once for $9.99 to unlock every lesson and lab, the final exam and the certificate – lifetime access, no subscription.

Lessons in this course

  1. Embeddings as Vectors: Length, Normalisation & the L1 NormLab13 min Locked
  2. Dot Product vs Cosine Similarity with SUMPRODUCTLab14 min Locked
  3. Top-k Retrieval: RANK.EQ, LARGE and INDEX/MATCHLab14 min Locked
  4. Euclidean Distance vs Cosine: When Do the Rankings Disagree?Lab14 min Locked
  5. Chunking: Tokens per Chunk, Number of Chunks & Embedding CostLab15 min Locked
  6. Approximate Search: Recall@k vs Exact Search and the Speed Trade-offLab15 min Locked
  7. Hybrid Search: Blending Keyword and Vector ScoresLab14 min Locked
  8. RAG Retrieval Evaluation: Hit Rate@k, MRR & a ChartLab16 min Locked