MCPcopy Create free account
hub / github.com/VectorDB-NTU/RaBitQ-Library / set_g_add

Method set_g_add

include/rabitqlib/index/query.hpp:44–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 [[nodiscard]] T g_add() const { return G_add_; }
43
44 void set_g_add(T dist) {
45 // For L2, dist is the compute by euclidean_sqr()
46 // For IP, dist is computed by dot_product_dist() i.e., 1 - dot_product()
47 G_add_ = dist;
48 }
49
50 [[nodiscard]] const uint8_t* lut() const { return lookup_table_.lut(); }
51};

Callers 4

searchMethod · 0.45
searchMethod · 0.45
find_candidatesMethod · 0.45
get_ex_estMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected