kodama-cpp
Standalone float32 KODAMA kernels for CPU, CUDA, and Apple Metal
Loading...
Searching...
No Matches
kodama::KNNParametersUsed Struct Reference

#include <kodama.hpp>

Public Attributes

Backend backend = Backend::CPU
 
KNNIndexType index_type = KNNIndexType::NativeHNSW
 
DistanceMetric metric = DistanceMetric::Cosine
 
int k = 10
 
int ivf_nlist = 0
 
int ivf_nprobe = 0
 
double ivf_pilot_recall = 0.0
 
int hnsw_m = 0
 
int hnsw_ef_construction = 0
 
int hnsw_ef_search = 0
 
int hnsw_tune_k = 50
 
double hnsw_target_recall = 0.99
 
int gpu_device = 0
 
int n_threads = 1
 

Detailed Description

Definition at line 239 of file kodama.hpp.

Member Data Documentation

◆ backend

Backend kodama::KNNParametersUsed::backend = Backend::CPU

Definition at line 240 of file kodama.hpp.

◆ gpu_device

int kodama::KNNParametersUsed::gpu_device = 0

Definition at line 252 of file kodama.hpp.

◆ hnsw_ef_construction

int kodama::KNNParametersUsed::hnsw_ef_construction = 0

Definition at line 248 of file kodama.hpp.

◆ hnsw_ef_search

int kodama::KNNParametersUsed::hnsw_ef_search = 0

Definition at line 249 of file kodama.hpp.

◆ hnsw_m

int kodama::KNNParametersUsed::hnsw_m = 0

Definition at line 247 of file kodama.hpp.

◆ hnsw_target_recall

double kodama::KNNParametersUsed::hnsw_target_recall = 0.99

Definition at line 251 of file kodama.hpp.

◆ hnsw_tune_k

int kodama::KNNParametersUsed::hnsw_tune_k = 50

Definition at line 250 of file kodama.hpp.

◆ index_type

KNNIndexType kodama::KNNParametersUsed::index_type = KNNIndexType::NativeHNSW

Definition at line 241 of file kodama.hpp.

◆ ivf_nlist

int kodama::KNNParametersUsed::ivf_nlist = 0

Definition at line 244 of file kodama.hpp.

◆ ivf_nprobe

int kodama::KNNParametersUsed::ivf_nprobe = 0

Definition at line 245 of file kodama.hpp.

◆ ivf_pilot_recall

double kodama::KNNParametersUsed::ivf_pilot_recall = 0.0

Definition at line 246 of file kodama.hpp.

◆ k

int kodama::KNNParametersUsed::k = 10

Definition at line 243 of file kodama.hpp.

◆ metric

DistanceMetric kodama::KNNParametersUsed::metric = DistanceMetric::Cosine

Definition at line 242 of file kodama.hpp.

◆ n_threads

int kodama::KNNParametersUsed::n_threads = 1

Definition at line 253 of file kodama.hpp.


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