faiss_tips
faiss_tips copied to clipboard
index.xb no such attribute
In the section std::vector to/from np.array, index.xb is used but this attribute no longer exists.
A newer example using index.get_xb() works (https://github.com/facebookresearch/faiss/issues/2266#issuecomment-1072315659)
However I'm not clear why the 2nd parameter to faiss.rev_swig_ptr can be any number. It looks like gibberish values after n * d meaningful vector values are seen in the first n * d array positions.
Thanks for flagging. The content of this repo is a bit outdated. I need to update it some day...
If you encounter any other problems, I'd be very grateful if you'd let me know.