Skip to content

Commit

Permalink
chore: update readme (#4)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <[email protected]>
  • Loading branch information
kemingy authored Jan 24, 2024
1 parent c842fbe commit 48b4906
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
Supported databases/extensions:

- [x] [`pgvecto.rs`](https://github.com/tensorchord/pgvecto.rs)
- [ ] [`pgvector`](https://github.com/pgvector/pgvector)
- [x] [`pgvector`](https://github.com/pgvector/pgvector)
- [ ] [`qdrant`](https://github.com/qdrant/qdrant/)

Supported datasets:

- [x] random generated
- [x] GIST 960


## Installation

```bash
Expand All @@ -20,6 +19,16 @@ pip install vector_bench

## Run

### Server

Run the docker compose file under [`server`](server/) folder.

```base
cd server/pgvecto.rs && docker compose up -d
```

### Client

```bash
# help
vector_bench --help
Expand All @@ -30,3 +39,22 @@ vector_bench --query --url postgresql://postgres:password@localhost:5432/postgre
# insert and query the data
vector_bench --insert --query --url postgresql://postgres:password@localhost:5432/postgres -s gist_960_l2
```

## How to contribute

```bash
# 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`

0 comments on commit 48b4906

Please sign in to comment.