Benchmark vector database/extensions.
Project description
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
DatasetConfig
tovector_bench/dataset/source.py
Add more clients
- Inherit and implement the
BaseClient
class invector_bench/client/base.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vector-bench-0.1.0.tar.gz
(12.4 kB
view details)
Built Distribution
File details
Details for the file vector-bench-0.1.0.tar.gz
.
File metadata
- Download URL: vector-bench-0.1.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83b95a12b5e2a807b1671584e0738cbdf73066f77f5ae64293f7af7d6c457c52 |
|
MD5 | 852ff13f39a71dee2a2a454c06df98a5 |
|
BLAKE2b-256 | 1702c0c39cc55a0e8e490ddbd90cf2d8a5f0f195fa038778a1e3a432bbbad770 |
File details
Details for the file vector_bench-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: vector_bench-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 062e984534892fa41a19669ee9b19bf46c9a8fd89ea09c00a5793eccbda1676f |
|
MD5 | 524ca4f3c6cc4d5cdc7b38b2bed78d56 |
|
BLAKE2b-256 | 847e89eb2a942e02e69009e5babefb01c666b4fc9d66cc024e1e65f3d2015065 |