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

Indexing dense numeric vector #145

Open
huahaiy opened this issue Sep 12, 2022 · 4 comments
Open

Indexing dense numeric vector #145

huahaiy opened this issue Sep 12, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@huahaiy
Copy link
Contributor

huahaiy commented Sep 12, 2022

Add a data type :vec, for indexing dense numeric vectors and search based on similarity.

@huahaiy huahaiy added the enhancement New feature or request label Nov 28, 2022
@huahaiy
Copy link
Contributor Author

huahaiy commented Mar 26, 2023

@huahaiy
Copy link
Contributor Author

huahaiy commented May 4, 2023

ScaNN is fast for it does lookup table in SIMD register: https://medium.com/@kumon/similarity-search-scann-and-4-bit-pq-ab98766b32bd (paper https://arxiv.org/pdf/1704.07355.pdf)

Faiss has better packaging, also, it has PQ4 implementation as well. https://github.com/facebookresearch/faiss/wiki/Indexing-1M-vectors#4-bit-pq-comparison-with-scann

@huahaiy
Copy link
Contributor Author

huahaiy commented May 5, 2023

For our initial version, https://github.com/nmslib/hnswlib seems to be ideal, for the following reason:

  1. It performs well across the board. https://github.com/erikbern/ann-benchmarks/
  2. It out performs everything else for huge vectors https://ann-benchmarks.com/kosarak-jaccard_10_jaccard.html. The current batch of state of the art libraries optimize for vectors less than 1000 dimensions. But my hunch is that huge vectors (greater than 10k dimensions) are needed to really take advantage of the vector views of semantics (i..e. the so called vector symbolic approach).
  3. It is small and seems to be much easier to integrate than others.

@huahaiy
Copy link
Contributor Author

huahaiy commented May 10, 2023

Another option, is https://github.com/unum-cloud/usearch

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

No branches or pull requests

1 participant