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

Ensure BFIndex is pickleable #605

Open
davnn opened this issue Dec 8, 2024 · 0 comments
Open

Ensure BFIndex is pickleable #605

davnn opened this issue Dec 8, 2024 · 0 comments

Comments

@davnn
Copy link

davnn commented Dec 8, 2024

It's currently not possible to pickle the BFIndex, while the Index can be pickled.

import pickle
from hnswlib import BFIndex

index = BFIndex(space="l2", dim=10)

with open("index.hnswlib", "wb") as f:
    pickle.dump(index, f)

It would be nice if both index types could be pickled, how hard would it be to support pickling for BFIndex?

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

No branches or pull requests

1 participant