Section navigation

Public classSealed HnswBuildConfig

Namespace
Rowles.LeanCorpus.Codecs.Hnsw
Assembly
Rowles.LeanCorpus.dll

Build-time configuration for HNSW vector graphs.

public sealed class HnswBuildConfig
Inheritance
HnswBuildConfig

Public property EfConstruction

Candidate set size during graph construction. Must be in [1, 2000]. Default 100.

Public property M

Maximum neighbours per node on layers above zero. Must be in [2, 100]. Default 16.

Public property M0

Maximum neighbours on layer zero. Defaults to 2 * M when zero. Must be in [2, 200] when set explicitly.