Replies: 1 comment
-
For the functions (add, storage_distance_computer, set_query, add_with_locks)
|
Beta Was this translation helpful? Give feedback.
-
For the functions (add, storage_distance_computer, set_query, add_with_locks)
|
Beta Was this translation helpful? Give feedback.
-
i am new to coding,In IndexHNSW.cpp, the storage is always IndexPQ or not?
in void IndexHNSW::add()
{ ....
storage->add(n, x);
....
}
will it use the add method in IndexFlatCodes? because i see there is no add() in indexPQ and IndexPQ : IndexFlatCodes
in void hnsw_add_vertices()
{ ....
std::unique_ptr dis(storage_distance_computer(index_hnsw.storage));
....
}
but i think that DistanceComputer doesnt work for PQ
Which method is actually used by HNSWPQ? For these functions,(add, storage_distance_computer, set_query, add_with_locks)
i want to know how faiss combined HNSW and PQ in code, but i am confused
Beta Was this translation helpful? Give feedback.
All reactions