HNSW-Sharp

Core Concepts

What HNSW is, the meaning of each parameter, and how distance functions plug in.

What is HNSW?

The hierarchical proximity graph at the heart of the algorithm — and why it scales so well.

Parameters

M, EfSearch, EfConstruction, and the ACORN-γ filtering knobs — what each one trades.

Distance functions

The four CosineDistance variants, what their preconditions are, and how to plug in your own metric.

© 2026 HNSW-Sharp. All rights reserved.