Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Coursera

Tune HNSW

Coursera via Coursera

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Tune HNSW is an intermediate-level course designed for machine learning practitioners and AI engineers looking to master the art of vector search optimization. In modern AI applications, finding the right balance between search accuracy (recall) and speed (latency) is critical, but traditional methods often fall short. This course provides a focused, hands-on deep dive into the Hierarchical Navigable Small World (HNSW) algorithm, empowering you to build and tune high-performance vector indices. To get the most out of this course, you should have a foundational understanding of key concepts. Prerequisites include familiarity with vector embeddings and basic Python programming. Prior experience with machine learning concepts is also helpful, as it will provide the context needed to master the practical trade-offs of performance tuning. You will move from theory to practice, learning how to strategically manipulate the core HNSW parameters—efConstruction, M, and efSearch—to meet specific project requirements. Through expert-led videos, practical readings, and a code-along lab, you'll learn to build an HNSW index from scratch. You will then systematically analyze the performance trade-offs by charting a precision-latency curve. The course culminates in a final project where you'll justify your tuning decisions for a simulated real-world scenario, creating a portfolio-ready demonstration of your ability to optimize vector search for applications ranging from low-latency chatbots to high-recall visual search engines.

Syllabus

  • Building a High-Quality HNSW Index
    • This module lays the groundwork for vector search optimization. You will discover why the initial construction of an HNSW index is critical for performance, using Microsoft Bing's massive scale as a case study. You will learn what the build-time parameters M and efConstruction control, and how to implement them to create a robust index graph. The module concludes with a practice assignment to solidify your understanding of how to build a quality index from the start.
  • Tuning for Recall, Latency, and Justification
    • In this module, you will shift your focus to query-time optimization. Using Amazon's visual product search as a guide, you will learn how to tune the efSearch parameter to achieve the right balance between recall and latency for your users. You'll apply this knowledge in a hands-on lab to generate a performance curve and make data-driven decisions. The course culminates in a final project where you will bring all the skills together to tune and justify a complete HNSW implementation for a new, real-world scenario.

Taught by

LearningMate

Reviews

Start your review of Tune HNSW

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.