Skip to content

Commit

Permalink
remove unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
blaise-muhirwa committed Nov 28, 2023
1 parent 3825fc6 commit 362a337
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions flatnav/Index.h
Original file line number Diff line number Diff line change
Expand Up @@ -519,18 +519,6 @@ template <typename dist_t, typename label_t> class Index {
float min_dist = std::numeric_limits<float>::max();
node_id_t entry_node = 0;

/**
* @brief If we use a product quantizer, this is what will happen:
* 1. When comparing the query to a database vector (during insertion or
* search in HNSW), you don't directly compute a distance using their
* original vectors or even use the PQ code of the query. Instead, for each
* segment of the database vector, look up the distance between the query's
* segment and the database vector's corresponding centroid using the
* pre-computed distance table for that segment. Sum these distances across
* all segments to get the total asymmetric distance between the query and
* the database vector.
*
*/
for (node_id_t node = 0; node < _cur_num_nodes; node += step_size) {

float dist =
Expand Down

0 comments on commit 362a337

Please sign in to comment.