Enet4 / faiss-rs

Rust language bindings for Faiss
Apache License 2.0
202 stars 36 forks source link

Add support for working with binary indexes. #79

Closed aalekhpatel07 closed 8 months ago

aalekhpatel07 commented 8 months ago

This is an attempt to provide first-class support for Faiss binary indexes consuming the C API (along with a couple of utility functions introduced in Enet4/faiss#1)

PS: Still a WIP but I just wanted to have something to share in case I misunderstood something and was going down the wrong path.

This should be complete in terms of functionality (at least for a default BinaryIndexImpl) so I'm hoping to learn of any major concerns before continuing down this path and adding the IndexBinaryFlat, IndexBinaryHNSW, etc, concrete impls.

Enet4 commented 8 months ago

Hey @aalekhpatel07, I have merged #77 in the meantime, so please feel free to recreate the pull request onto the upstream branch.