Does hnsw or ivf support angular when constructing?
I am using python interface, but when I add param such as faiss.METRIC_INNER_PRODUCT or faiss.METRIC_L2 in construction function, like faiss.IndexHNSWSQ(), it raises error for too many parameters. But I found in c++ version, there are parameters for metric type. So Why I can't use them in python?
index = faiss.IndexHNSWSQ(10, 0, 32, faiss.METRIC_INNER_PRODUCT)
index.metric_type
works for me.
Thanks for your help. While when I try these code, it raises error:
I am using faiss 1.5.3.
Sloved after I install faiss through conda, which is faiss 1.7.0. I am using pip before. Hope you can update faiss package on pip, thanks!
Oh the name change to faiss-cpu which version is 1.7.0, not faiss. Thanks again