Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,48 @@ To list the options for VolcMySQL, execute `vectordbbench volcmysqlhnsw --help`.

> Note: vectors are loaded and queried over the raw-binary `VECTOR` path by default; the client auto-probes server support and falls back to `to_vector()` text when unavailable. Set `VDB_BINARY_VEC=0` to force the text path or `1` to force binary.

### Run HouyiDB from command line

HouyiDB is a memory-first vector database with an HNSW index, a PostgreSQL-compatible pgwire endpoint and an HTTP benchmark API. Install the optional client dependencies with `pip install vectordb-bench[houyidb]`. The client loads and searches over pgwire by default and switches to the HTTP API for filtered cases or when `--transport http` is selected.

HouyiDB builds a cosine index, so the client rejects datasets whose distance metric is not `COSINE`. Because the server has no remote drop for the main index, a `drop_old=True` case is rejected when the index is not empty: start HouyiDB from an empty data directory (and empty WAL) before a fresh load. Before measuring, the client reads the effective `hnsw_m`, `hnsw_ef_construction` and `distance_metric` from `/v1/index/status` and aborts the run if they do not match the case configuration. With `--transport pgwire`, start the server with matching build parameters, e.g. `--pgwire-hnsw-m 24 --pgwire-hnsw-efc 400`; `--no-verify-build-params` is available only for older servers that do not report these fields.

```shell
vectordbbench houyidb \
--case-type Performance1536D50K \
--host <db_host> \
--port 15432 \
--http-port 17000 \
--transport pgwire \
--m 24 \
--ef-construction 400 \
--ef-search 256 \
--num-concurrency '10,20,40,60,80' \
--concurrency-duration 30 \
--task-label <task_label> \
--db-label <db_label>
```

To list the options for HouyiDB, execute `vectordbbench houyidb --help`. The following are some HouyiDB-specific command-line options.

```text
--host TEXT HouyiDB host [required]
--port INTEGER HouyiDB pgwire port [default: 15432]
--http-port INTEGER Benchmark HTTP port [default: 17000]
--transport [pgwire|http] Data plane [default: pgwire]
--use-tls / --no-use-tls Use HTTPS for HTTP requests [default: no-use-tls]
--api-key TEXT Optional token: HTTP Bearer or pgwire password
--timeout-sec INTEGER Per-request timeout in seconds, including pgwire statement execution [default: 600]
--verify-build-params / --no-verify-build-params
Verify the server's effective HNSW build parameters before measuring [default: verify]
--metric-type [COSINE] Distance metric (HouyiDB builds a cosine index) [default: COSINE]
--m INTEGER HNSW m [default: 24]
--ef-construction INTEGER HNSW ef_construction [default: 400]
--ef-search INTEGER HNSW ef_search [default: 256]
```

Filtered cases use the HTTP data plane because that is where HouyiDB accepts scalar labels and id filters.

#### Using a configuration file.

The vectordbbench command can optionally read some or all the options from a yaml formatted configuration file.
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ seekdb = [ "mysql-connector-python" ]
volc_mysql = [ "mysql-connector-python" ]
pinot = [ "requests" ]
adbpg = [ "psycopg", "psycopg-binary", "pgvector" ]
houyidb = [ "requests", "psycopg[binary]>=3.1" ]

[project.urls]
Repository = "https://github.com/zilliztech/VectorDBBench"
Expand Down
Loading
Loading