knncolle_hnsw
knncolle bindings for HNSW
Loading...
Searching...
No Matches
knncolle_hnsw::HnswOptions Struct Reference

Options for HnswBuilder and HnswPrebuilt. More...

#include <knncolle_hnsw.hpp>

Public Attributes

int num_links = 16
 
int ef_construction = 200
 
int ef_search = 10
 

Detailed Description

Options for HnswBuilder and HnswPrebuilt.

This can also be created via using the HnswBuilder::Options definition, which ensures consistency of template parameters with HnswBuilder.

Member Data Documentation

◆ ef_construction

int knncolle_hnsw::HnswOptions::ef_construction = 200

Size of the dynamic list of nearest neighbors during index construction. This controls the trade-off between indexing time and accuracy and is equivalent to the ef_construct parameter in the underlying hnswlib library, see here for details.

◆ ef_search

int knncolle_hnsw::HnswOptions::ef_search = 10

Size of the dynamic list of nearest neighbors during searching. This controls the trade-off between search speed and accuracy and is equivalent to the ef parameter in the underlying hnswlib library, see here for details.

◆ num_links

int knncolle_hnsw::HnswOptions::num_links = 16

Number of bidirectional links for each node. This is equivalent to the M parameter in the underlying hnswlib library, see here for details.


The documentation for this struct was generated from the following file: