[Back to Videos](/videos)

# HNSW: How Vector Search Skips 10 Million Comparisons

68

Multimodal Search in Action

Mixpeek Team

July 28, 2026

## Summary

Ten million vectors sit in an index and a query arrives. Comparing against every one is exact and unusable, so vector databases run HNSW instead. This video is a live simulation of the algorithm: build a proximity graph, walk it greedily toward the query, then watch why a single flat graph makes that walk cross the entire space. HNSW stacks the graph into layers, so a thin top layer with long links covers enormous ground in a couple of hops and the best node found becomes the entry point one level down. Coarse to fine, logarithmic rather than linear. It is approximate, and widening the candidate list raises recall and latency together, which is the real operating decision. Full breakdown: mixpeek.com/guides/approximate-nearest-neighbor-algorithms

hnswvector-searchapproximate-nearest-neighborannembeddingsinformation-retrieval

## About this video

Ten million vectors sit in an index and a query arrives. Comparing against every one is exact and unusable, so vector databases run HNSW instead. This video is a live simulation of the algorithm: build a proximity graph, walk it greedily toward the query, then watch why a single flat graph makes that walk cross the entire space. HNSW stacks the graph into layers, so a thin top layer with long links covers enormous ground in a couple of hops and the best node found becomes the entry point one level down. Coarse to fine, logarithmic rather than linear. It is approximate, and widening the candidate list raises recall and latency together, which is the real operating decision. Full breakdown: mixpeek.com/guides/approximate-nearest-neighbor-algorithms

## Frequently Asked Questions

What is HNSW?

Why is HNSW approximate, and what is the tradeoff?