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

Is it possible to lazy load index from disk? #3367

Closed
mayunlei opened this issue Apr 13, 2024 · 1 comment
Closed

Is it possible to lazy load index from disk? #3367

mayunlei opened this issue Apr 13, 2024 · 1 comment

Comments

@mayunlei
Copy link

mayunlei commented Apr 13, 2024

Summary

now, faiss index must load all index into memory before searching.
Is it possible to lazy load index from disk into memory for IVF index ?
For a query, only nprobe parts of ivf index is needed , so it is possible to read only needed ivf lists into memory in searching time. those loaded ivf lists may be cached in memory or be released after searching.
Is there any consideration why lazy load is not supported?

@mdouze
Copy link
Contributor

mdouze commented Apr 15, 2024

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

3 participants