MCPcopy Create free account
hub / github.com/antgroup/vsag / StaticMemoryIndex

Method StaticMemoryIndex

extern/diskann/DiskANN/python/src/static_memory_index.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31template <class DT>
32StaticMemoryIndex<DT>::StaticMemoryIndex(const diskann::Metric m, const std::string &index_prefix,
33 const size_t num_points, const size_t dimensions, const uint32_t num_threads,
34 const uint32_t initial_search_complexity)
35 : _index(static_index_builder<DT>(m, num_points, dimensions, initial_search_complexity))
36{
37 const uint32_t _num_threads = num_threads != 0 ? num_threads : omp_get_num_threads();
38 _index.load(index_prefix.c_str(), _num_threads, initial_search_complexity);
39}
40
41template <typename DT>
42NeighborsAndDistances<StaticIdType> StaticMemoryIndex<DT>::search(

Callers 7

build_and_searchFunction · 0.80
staticFunction · 0.80
test_recall_and_batchMethod · 0.80
test_singleMethod · 0.80

Calls 1

loadMethod · 0.45

Tested by 5

test_recall_and_batchMethod · 0.64
test_singleMethod · 0.64