You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is just the L2 distances (as the class name suggests).
So after saving and reloading a formerly Euclidean index, you must manually convert from L2 distances.
Fix for this will probably be to introduce a dedicated RcppHNSW::HnswEuclidean class which will do the square-rooting for you inside a method. This will be returned from hnsw_build when distance = "euclidean".
The text was updated successfully, but these errors were encountered:
Build a Euclidean index via
hnsw_build
:So far so good. Now save it:
The class of
ann
is:so we should be able to load it with:
Now search again:
This is just the L2 distances (as the class name suggests).
So after saving and reloading a formerly Euclidean index, you must manually convert from L2 distances.
Fix for this will probably be to introduce a dedicated
RcppHNSW::HnswEuclidean
class which will do the square-rooting for you inside a method. This will be returned fromhnsw_build
whendistance = "euclidean"
.The text was updated successfully, but these errors were encountered: