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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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