Scalable Vector Search Benchmarking
Scalable Vector Search Benchmarking enables the benchmarking or evaluation of the Scalable Vector Search library.
Installation
Requires Python >= 3.12.
python -m pip install \
git+https://github.com/IntelLabs/ScalableVectorSearchBenchmarking
Usage
Building an index
python -m svsbench.build \
--vecs_file /path/to/vectors.fvecs \
--svs_type leanvec4x8 --leanvec_dims -4 \
--proportion_vectors_init 0.5 --batch_size 10000
Computing the ground truth
For the query vectors used in performance measurements:
python -m svsbench.generate_ground_truth \
--vecs_file vectors.fvecs \
--query_file query_vectors.fvecs
For the query vectors used in the calibration of search parameters:
python -m svsbench.generate_ground_truth \
--vecs_file vectors.fvecs \
--query_file calibration_query_vectors.fvecs
Searching
Calibrating the search parameters for a given recall and then searching:
python -m svsbench.search \
--idx_dir /path/to/index_dir_from_build \
--svs_type leanvec4x8 \
--query_file /path/to/query_vectors.fvecs \
--ground_truth_file /path/to/ground_truth.ivecs \
-k 5 \
--recall 0.95 \
--calibration_query_file /path/to/calibration_query_vectors.fvecs \
--calibration_ground_truth_file /path/to/calibration_ground_truth.ivecs
Searching using specified search parameters:
python -m svsbench.search \
--idx_dir /path/to/index_dir_from_build \
--svs_type leanvec4x8 \
--query_file /path/to/query_vectors.fvecs \
--ground_truth_file /path/to/ground_truth.ivecs \
-k 5 \
--batch_size 1 \
--search_window_size 14 \
--search_buffer_capacity 34 \
--prefetch_lookahead 1 \
--prefetch_step 0 \
--batch_size 10000 \
--search_window_size 15 \
--search_buffer_capacity 36 \
--prefetch_lookahead 10 \
--prefetch_step 4
Metadata
Release files for svsbench 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| svsbench-0.1.0.tar.gz | 29.9 kB | Without provenance | Details for svsbench-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| svsbench-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for svsbench-0.1.0-py3-none-any.whl |
Total release size: 50.1 kB
Release files / svsbench-0.1.0.tar.gz
| Download URL | svsbench-0.1.0.tar.gz |
|---|---|
| Size | 29.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ec888a3acfd44e9b4ea5ca1335f8b13c4d4b1cd2439c1980e998447be24d53d
|
|
BLAKE2b-256 checksum How to use checksums |
211274c5d42d07cdbd2170be974ec028b4e4e40ae7e012f3723ca3d3e322619f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.5
|
Release files / svsbench-0.1.0-py3-none-any.whl
| Download URL | svsbench-0.1.0-py3-none-any.whl |
|---|---|
| Size | 20.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c1db02db8b5885f9c37b02b9ae0f9acd95dc22996af29b62b9dc4f3a4e0833d
|
|
BLAKE2b-256 checksum How to use checksums |
2ea27ffb7fb63f1ea1efe266aa3331b7fc7029b505eb48f4587892b47075358a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.5
|
Security for svsbench 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.