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 | |
|---|---|---|---|
| vector-bench-0.1.0.tar.gz | 12.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vector_bench-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
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
|