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 sample parameter to Faiss ANN #427

Closed
davidmezzetti opened this issue Feb 17, 2023 · 0 comments
Closed

Add sample parameter to Faiss ANN #427

davidmezzetti opened this issue Feb 17, 2023 · 0 comments
Assignees
Milestone

Comments

@davidmezzetti
Copy link
Member

Currently when building a Faiss index, all rows are used in the training step. For larger indexes, using all rows isn't necessary to build an accurate ANN index. A fraction of the data works well and vastly reduces indexing time. See the link below for more on this.

https://github.com/facebookresearch/faiss/wiki/FAQ#how-can-i-distribute-index-building-on-several-machines

This issue will add a new parameter called sample. When set, this parameter will select a fraction of the data using random sampling. Once the model is trained, all rows will be added to the ANN index.

@davidmezzetti davidmezzetti added this to the v5.4.0 milestone Feb 17, 2023
@davidmezzetti davidmezzetti self-assigned this Feb 17, 2023
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