Vector DB Benchmark
Supported databases/extensions:
Supported datasets:
- random generated
- GIST 960
Installation
pip install vector_bench
Run
Server
Run the docker compose file under server folder.
cd server/pgvecto.rs && docker compose up -d
Client
# help
vector_bench --help
# only insert the data
vector_bench --insert --url postgresql://postgres:password@127.0.0.1:5432/postgres -s gist_960_l2
# only query the data (make sure the data is already inserted)
vector_bench --query --url postgresql://postgres:password@localhost:5432/postgres -s gist_960_l2
# insert and query the data
vector_bench --insert --query --url postgresql://postgres:password@localhost:5432/postgres -s gist_960_l2
How to contribute
# install all the necessary dependencies:
make dev
# format code
make format
# lint
make lint
Add more datasets
- Add new
DatasetConfigtovector_bench/dataset/source.py
Add more clients
- Inherit and implement the
BaseClientclass invector_bench/client/base.py
Metadata
Release files for vector-bench 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 |
|---|---|---|---|---|
| vector-bench-0.1.0.tar.gz | 12.4 kB | Without provenance | Details for vector-bench-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vector_bench-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for vector_bench-0.1.0-py3-none-any.whl |
Total release size: 26.2 kB
Release files / vector-bench-0.1.0.tar.gz
| Download URL | vector-bench-0.1.0.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83b95a12b5e2a807b1671584e0738cbdf73066f77f5ae64293f7af7d6c457c52
|
|
BLAKE2b-256 checksum How to use checksums |
1702c0c39cc55a0e8e490ddbd90cf2d8a5f0f195fa038778a1e3a432bbbad770
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / vector_bench-0.1.0-py3-none-any.whl
| Download URL | vector_bench-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
062e984534892fa41a19669ee9b19bf46c9a8fd89ea09c00a5793eccbda1676f
|
|
BLAKE2b-256 checksum How to use checksums |
847e89eb2a942e02e69009e5babefb01c666b4fc9d66cc024e1e65f3d2015065
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for vector-bench 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.