Skip to main content

Scalable Vector Search (SVS) is a performance library for vector similarity search.

Project description

Scalable Vector Search

Linux Build and Test CIBuildWheel License

Scalable Vector Search (SVS) is a performance library for vector similarity search. Thanks to the use of Locally-adaptive Vector Quantization (LVQ) [ABHT23] and its highly optimized indexing and search algorithms, SVS provides vector similarity search:

  • on billions of high-dimensional vectors,
  • at high accuracy
  • and state-of-the-art speed,
  • while enabling the use of less memory than its alternatives.

This enables application and framework developers using similarity search to unleash its performance on Intel(R) Xeon(R) CPUs (2nd generation and newer).

SVS offers a fully-featured and yet simple Python API, compatible with most standard libraries. SVS is written in C++ to facilitate its integration into performance-critical applications.

Please note that this repository only contains the open-source portion of the SVS library, which supports all functionalities and features described in the documentation, except for our proprietary vector compression techniques, specifically LVQ [ABHT23] and Leanvec [TBAH24]. These techniques are closed-source and supported exclusively on Intel hardware. We provide shared library and PyPI package to enable these vector compression techniques in C++ and Python, respectively. For guidance on using the shared library, please refer to this example.

Performance

SVS provides state-of-the-art performance and accuracy [ABHT23] for billion-scale similarity search on standard benchmarks.

For example, for the standard billion-scale Deep-1B dataset, different configurations of SVS yield significantly increased performance (measured in queries per second, QPS) with a smaller memory footprint (horizontal axis) than the alternatives[^1]:

SVS is primarily optimized for large-scale similarity search but it still offers state-of-the-art performance at million-scale.

Best performance is obtained with Intel(R) Xeon(R) 6 processors (Granite Rapids), by making use of Intel(R) AVX-512 instructions, with excellent results also with 2nd through 5th gen Intel(R) Xeon(R) processors (Cascade Lake, Ice Lake, Sapphire Rapids, and Emerald Rapids).

Performance will be degraded if Intel(R) AVX-512 instructions are not available. A warning message will appear when loading the SVS Python module if the system does not support Intel(R) AVX-512 instructions.

Key Features

SVS supports:

  • Similarity functions: Euclidean distance, inner product, cosine similarity.
  • Vectors with individual values encoded as: float32, float16, uint8, int8.
  • Vector compression (including Locally-adaptive Vector Quantization [ABHT23])
  • Optimizations for Intel(R) Xeon(R) processors:
    • 2nd generation (Cascade Lake)
    • 3rd generation (Ice Lake)
    • 4th generation (Sapphire Rapids)
    • 5th generation (Emerald Rapids)
    • 6th generation (Granite Rapids)

See Roadmap for upcoming features.

Documentation

SVS documentation includes getting started tutorials with installation instructions for Python and C++ and step-by-step search examples, an API reference, as well as several guides and benchmark comparisons.

References

Reference to cite when you use SVS in a research paper:

@article{aguerrebere2023similarity,
        title={Similarity search in the blink of an eye with compressed indices},
        volume = {16},
        number = {11},
        pages = {3433--3446},
        journal = {Proceedings of the VLDB Endowment},
        author={Cecilia Aguerrebere and Ishwar Bhati and Mark Hildebrand and Mariano Tepper and Ted Willke},
        year = {2023}
}

[ABHT23] Aguerrebere, C.; Bhati I.; Hildebrand M.; Tepper M.; Willke T.:Similarity search in the blink of an eye with compressed indices. In: Proceedings of the VLDB Endowment, 16, 11, 3433 - 3446. (2023)

[TBAH24] Tepper M.; Bhati I.; Aguerrebere, C.; Hildebrand M.; Willke T.:LeanVec: Searching vectors faster by making them fit. In: Transactions on Machine Learning Research(TMLR), ISSN, 2835 - 8856. (2024)

Legal

Refer to the LICENSE file for details.

[^1]: Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex. Performance results are based on testing as of dates shown in configurations and may not reflect all publicly available updates. No product or component can be absolutely secure. Your costs and results may vary. Intel technologies may require enabled hardware, software or service activation. © Intel Corporation. Intel, the Intel logo, and other Intel marks are trademarks of Intel Corporation or its subsidiaries. Other names and brands may be claimed as the property of others.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

scalable_vs-0.0.9-0-cp313-cp313-manylinux_2_28_x86_64.whl (8.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

scalable_vs-0.0.9-0-cp312-cp312-manylinux_2_28_x86_64.whl (8.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

scalable_vs-0.0.9-0-cp311-cp311-manylinux_2_28_x86_64.whl (8.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

scalable_vs-0.0.9-0-cp310-cp310-manylinux_2_28_x86_64.whl (8.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

scalable_vs-0.0.9-0-cp39-cp39-manylinux_2_28_x86_64.whl (8.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

File details

Details for the file scalable_vs-0.0.9-0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for scalable_vs-0.0.9-0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0eff10aea47806b85aca3a44e1e57d665d6fe331f7d8b0be534ad6408fea2ff7
MD5 9380d5e96739da06246f79cc50162e35
BLAKE2b-256 f1298f3688fc15700d88b9b494be8de07d113e28e842d7251174d111d1341a99

See more details on using hashes here.

File details

Details for the file scalable_vs-0.0.9-0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for scalable_vs-0.0.9-0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 582d98c31b5ee5477b997902b07a2497a0bd3ebecc78984b1badcc96bda9231d
MD5 59780efca8d3ace810e23ad2c7dd149a
BLAKE2b-256 5dd4eb1d58177d3ef0a056cc365715c74e26aabde0691673b974f846b1cb5476

See more details on using hashes here.

File details

Details for the file scalable_vs-0.0.9-0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for scalable_vs-0.0.9-0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ba170f973659483305cfe4b9e4ffd8e3041830949e0b8f9ffbefdf70a4e99d48
MD5 422027156dddf0b90133cef492801023
BLAKE2b-256 5f67ff8ef0e81dca6146fab3fa845f24d7136e39ae83125980684c00c2ab6366

See more details on using hashes here.

File details

Details for the file scalable_vs-0.0.9-0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for scalable_vs-0.0.9-0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1099e75b3a62bc4307c5ec3477fbcf8fb914262f2dd2ea193b6335fd8747d256
MD5 dfdfa27ce92606867c0e8dad0e2573db
BLAKE2b-256 1e5085daaea7e9850d27c7f00bc0bec8eba8f3e0e3dab7e830ede05dc602f2ca

See more details on using hashes here.

File details

Details for the file scalable_vs-0.0.9-0-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for scalable_vs-0.0.9-0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3b7d8b9a9fcb21f640d184fa2ae9cda21164d01b1400e1fac2e942b43fbbf178
MD5 6e4431147a228099ebb36dc50e8829c9
BLAKE2b-256 5a5d8d7651a82c963719900ef21562e02b935c7ef51723e7cd6e1f5d62139348

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page