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

Method load

extern/diskann/DiskANN/python/src/dynamic_memory_index.cpp:69–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69template <class DT> void DynamicMemoryIndex<DT>::load(const std::string &index_path)
70{
71 const std::string tags_file = index_path + ".tags";
72 if (!file_exists(tags_file))
73 {
74 throw std::runtime_error("tags file not found at expected path: " + tags_file);
75 }
76 _index.load(index_path.c_str(), _write_parameters.num_threads, _initial_search_complexity);
77}
78
79template <class DT>
80int DynamicMemoryIndex<DT>::insert(const py::array_t<DT, py::array::c_style | py::array::forcecast> &vector,

Callers 3

StaticMemoryIndexMethod · 0.45
from_fileMethod · 0.45
StaticDiskIndexMethod · 0.45

Calls 1

file_existsFunction · 0.50

Tested by

no test coverage detected