Skip to content
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

Add support for IndexBinaryIDMap2 to index_binary_factory #3875

Open
asadoughi opened this issue Sep 19, 2024 · 0 comments
Open

Add support for IndexBinaryIDMap2 to index_binary_factory #3875

asadoughi opened this issue Sep 19, 2024 · 0 comments

Comments

@asadoughi
Copy link
Contributor

Summary

Reproduction instructions

code_size = 16
bindex = faiss.IndexBinaryIDMap2(faiss.IndexBinaryFlat(code_size))
n = 10
d = code_size // 8
ids = np.arange(n)
x = np.zeros((n, d), dtype=np.uint8)
bindex.add_with_ids(x, ids)

should be possible with

bindex = faiss.index_binary_factory("IDMap2,BFlat")

but index_binary_factory does not currently parse for IDMap2 like index_factory does: https://github.com/facebookresearch/faiss/blob/main/faiss/index_factory.cpp#L908

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant