facebookresearch / faiss

A library for efficient similarity search and clustering of dense vectors.
https://faiss.ai
MIT License
31.63k stars 3.65k forks source link

Allow k and M suffixes in IVF indexes #3812

Closed mdouze closed 2 months ago

mdouze commented 2 months ago

Summary: Allows factory strings like IVF3k,Flat as a shorthand for 3072 centroids.

The main question is whether k or M should be metric (k=1000) or power of 2 (k=1024):

The suffixes ki and Mi should be used for powers of 2 but this makes the notation more heavy (which is what we wanted to avoid in the first place).

So I picked power of 2.

Differential Revision: D62019941

facebook-github-bot commented 2 months ago

This pull request was exported from Phabricator. Differential Revision: D62019941

facebook-github-bot commented 2 months ago

This pull request was exported from Phabricator. Differential Revision: D62019941

facebook-github-bot commented 2 months ago

This pull request was exported from Phabricator. Differential Revision: D62019941

facebook-github-bot commented 2 months ago

This pull request has been merged in facebookresearch/faiss@d85fda7fca18128cb8cca47205663a47a7e4649e.