Table of Contents

Internal classStaticInternal HnswGraphBuilder

Namespace
Rowles.LeanLucene.Codecs.Hnsw
Assembly
Rowles.LeanLucene.dll

Bulk constructor for HnswGraph. Performs a deterministic shuffle of insertion order when a seed is supplied so that builds are reproducible.

internal static class HnswGraphBuilder
HnswGraphBuilder

Methods

Public methodStatic Build(IVectorSource, IReadOnlyList<int>, HnswBuildConfig, long?)

Builds and freezes an HNSW graph over the supplied vectors. Vectors are inserted in shuffled order to avoid bias from the natural insertion sequence.