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
Is there a way to compute the asymmetric distance of a query with respect to encoded (using PQ) database items? I figured out that I needed to use the get_FlatCodesDistanceComputer method of the index. Hereunder is my attempt:
I get the following error when executing: dist_comp.set_query(faiss.swig_ptr(x_norm[0]))
TypeError: in method 'DistanceComputer_set_query', argument 2 of type 'float const *'
I also tried the following, which does not give an error, but unsure why does it output only 0. I expected it to output 5 distances since I compare a query with 5 different encodings :
Is there a way to compute the asymmetric distance of a query with respect to encoded (using PQ) database items? I figured out that I needed to use the
get_FlatCodesDistanceComputer
method of the index. Hereunder is my attempt:However, I get the following error:
Could you please let me know what I am missing?
Thanks.
The text was updated successfully, but these errors were encountered: