Terminal / quickstart
bash
# 1 · Start: HTTP :7000 / pgwire :5432
git clone https://github.com/houyidb-community/houyidb.git
cd houyidb
docker compose up -d
curl -sS --noproxy '*' http://127.0.0.1:7000/v1/health
# {"status":"ok"}
# 2 · Upsert (the collection is created on first write; dimensions follow the batch)
curl -sS --noproxy '*' -X POST \
http://127.0.0.1:7000/v1/collections/goods/upsert \
-H 'Content-Type: application/json' -d '{
"vectors": [
{"id":1,"values":[0.92,0.88,0.06,0.05,0.05,0.04,0.05,0.05],"label":"fruit","payload":{"name":"apple"}},
{"id":2,"values":[0.05,0.04,0.92,0.90,0.06,0.05,0.05,0.04],"label":"electronics","payload":{"name":"laptop"}},
{"id":3,"values":[0.04,0.05,0.05,0.06,0.90,0.92,0.05,0.04],"label":"book","payload":{"name":"rust-book"}}
]}'
# {"inserted":3}
# 3 · Search
curl -sS --noproxy '*' -X POST \
http://127.0.0.1:7000/v1/collections/goods/search \
-H 'Content-Type: application/json' \
-d '{"vector":[0.90,0.85,0.05,0.05,0.05,0.05,0.05,0.05],"k":3}'
# {"ids":[...],"scores":[...]}