MCPcopy Create free account
hub / github.com/alibaba/zvec / get_init_ids

Method get_init_ids

src/core/algorithm/diskann/diskann_algorithm.cc:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 : entity_(entity), max_degree_(max_degree), lock_pool_(kLockCnt) {}
26
27std::vector<diskann_id_t> DiskAnnAlgorithm::get_init_ids(DiskAnnContext *ctx) {
28 const auto &entity = ctx->get_entity();
29
30 std::vector<diskann_id_t> init_ids;
31
32 init_ids.emplace_back(entity.medoid());
33
34 return init_ids;
35}
36
37int DiskAnnAlgorithm::add_node(diskann_id_t id, DiskAnnContext *ctx) {
38 const void *vec = entity_.get_vector(id);

Callers

nothing calls this directly

Calls 1

medoidMethod · 0.80

Tested by

no test coverage detected