-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating to latest faiss? #72
Comments
Updating the inner Faiss to v1.7.4 seems like a good plan for v0.13.0. If you would like to send in a PR, the steps would be:
|
on the fork up top i just updated the git submodule without running gen_bindings or any source updates. |
I'm not sure if I understood you correctly. Do you want to use a custom version of the Faiss library? That makes things a bit trickier. You will either need to depend on dynamic linking (assuming the C API is left working and compatible), or bring those changes upstream to Faiss so that they are released officially in a future version. The changes I mentioned above are necessary to target a new version of Faiss, regardless of platform. Since Faiss does not follow semver, the crate is intended to always target a specific version of the library, or a version with a compatible C API. |
What I'm saying is that I went ahead and updated my personal fork to this https://github.com/facebookresearch/faiss/commits/v1.7.4 And without running any binding gen steps, building statically, everything worked. So i'm wondering -- did everything work only because I built for Mac? or if I tried building for other platforms, then I would need to do Hope that's clearer? |
I mean, it might have worked because of the range of API compatibility between those versions, but that may have been purely coincidental. In addition, new parts of the API are not exposed by |
Got it, thanks! |
@jondot hello,I hava a bug on mac m1
do you know what's going on?
|
yes, on mac, we need |
@Enet4 I haven't yet moved back to your repo, so these are the relevant lines: |
I've forked @SkyFan2002 's static build, and in the effort to simplify, I've also updated to latest Faiss:
https://github.com/jondot/faiss-rs
Compiling on Mac M1 and running vector search and indexing works well.
As now we have static build in this repo, I'm wondering if its possible to point to a recent Faiss version (and not a specific C_api flavor), or there's something hidden from my knowledge that forbids that?
The text was updated successfully, but these errors were encountered: