1#ifndef KNNCOLLE_ANNOY_LOAD_PREBUILT_HPP
2#define KNNCOLLE_ANNOY_LOAD_PREBUILT_HPP
55 config.
index = types[0];
56 config.
data = types[1];
101 class AnnoyDistance_,
102 typename AnnoyIndex_ = Index_,
103 typename AnnoyData_ = float,
104 class AnnoyRng_ = Annoy::Kiss64Random,
105 class AnnoyThreadPolicy_ = Annoy::AnnoyIndexSingleThreadedBuildPolicy
110 return new AnnoyPrebuilt<Index_, Data_, Distance_, AnnoyDistance_, AnnoyIndex_, AnnoyData_, AnnoyRng_, AnnoyThreadPolicy_>(dir, ndim);
Approximate nearest neighbor search with Annoy.
Definition Annoy.hpp:24
auto load_annoy_prebuilt(const std::filesystem::path &dir)
Definition load_annoy_prebuilt.hpp:107
AnnoyPrebuiltTypes load_annoy_prebuilt_types(const std::filesystem::path &dir)
Definition load_annoy_prebuilt.hpp:50
void quick_load(const std::filesystem::path &path, Input_ *const contents, const Length_ length)
std::string quick_load_as_string(const std::filesystem::path &path)
Template types of a saved Annoy index.
Definition load_annoy_prebuilt.hpp:26
std::string distance
Definition load_annoy_prebuilt.hpp:40
knncolle::NumericType index
Definition load_annoy_prebuilt.hpp:30
knncolle::NumericType data
Definition load_annoy_prebuilt.hpp:35
Utilities for the Annoy wrappers.