Skip to main content

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 to vector_bench/dataset/source.py

Add more clients

  • Inherit and implement the BaseClient class in vector_bench/client/base.py

Project details


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)

Uploaded Source

Built Distribution

vector_bench-0.1.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

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

Hashes for vector-bench-0.1.0.tar.gz
Algorithm Hash digest
SHA256 83b95a12b5e2a807b1671584e0738cbdf73066f77f5ae64293f7af7d6c457c52
MD5 852ff13f39a71dee2a2a454c06df98a5
BLAKE2b-256 1702c0c39cc55a0e8e490ddbd90cf2d8a5f0f195fa038778a1e3a432bbbad770

See more details on using hashes here.

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

Hashes for vector_bench-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 062e984534892fa41a19669ee9b19bf46c9a8fd89ea09c00a5793eccbda1676f
MD5 524ca4f3c6cc4d5cdc7b38b2bed78d56
BLAKE2b-256 847e89eb2a942e02e69009e5babefb01c666b4fc9d66cc024e1e65f3d2015065

See more details on using hashes here.

Supported by

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