Section navigation

Public classSealed HnswSearchOptions

Namespace
Rowles.LeanCorpus.Search
Assembly
Rowles.LeanCorpus.dll

Search-time options for HNSW graph traversal.

public sealed class HnswSearchOptions
Inheritance
HnswSearchOptions

Public constructor HnswSearchOptions()

Initialises HNSW options and captures the current process-wide search defaults.

Public property Ef

Candidate set size (ef) maintained during traversal. Higher gives better recall.

Public property MaxPostFilterRetries

Number of times ef is doubled when post-filtering leaves fewer than TopK survivors. Default is three.

Public property TopK

Maximum results to return after filtering. Zero means unlimited.