knncolle_hnsw
knncolle bindings for HNSW
|
knncolle bindings for HNSW search. More...
Classes | |
struct | DistanceConfig |
Distance configuration for the HNSW index. More... | |
class | HnswBuilder |
Perform an approximate nearest neighbor search with HNSW. More... | |
struct | HnswOptions |
Options for HnswBuilder and HnswPrebuilt . More... | |
class | HnswPrebuilt |
Prebuilt index for an Hnsw search. More... | |
class | HnswSearcher |
Searcher on an Hnsw index. More... | |
class | ManhattanDistance |
Manhattan distance. More... | |
class | SquaredEuclideanDistance |
Squared Euclidean distance. More... | |
Functions | |
template<typename HnswData_ = float> | |
DistanceConfig< HnswData_ > | makeEuclideanDistanceConfig () |
template<typename HnswData_ = float> | |
DistanceConfig< HnswData_ > | makeManhattanDistanceConfig () |
knncolle bindings for HNSW search.
DistanceConfig< HnswData_ > knncolle_hnsw::makeEuclideanDistanceConfig | ( | ) |
HnswData_ | Type of data in the HNSW index, usually floating-point. |
DistanceConfig::create
is set to hnswlib::L2Space
if HnswData_ = float
, otherwise it is set to SquaredEuclideanDistance
. DistanceConfig< HnswData_ > knncolle_hnsw::makeManhattanDistanceConfig | ( | ) |
HnswData_ | Type of data in the HNSW index, usually floating-point. |