Skip to content

v0.0.1 - Phase 1 (Proof of Mechanism)

Choose a tag to compare

@ysys143 ysys143 released this 24 May 14:53
· 707 commits to main since this release

Phase 1 Complete — Proof of Mechanism

GPU-accelerated vector search for PostgreSQL via NVIDIA cuVS, end-to-end working.

Architecture

  • PostgreSQL C extension with C++/CUDA wrapper split (ADR-001)
  • pg_cuvs_server GPU sidecar daemon (UDS command + shm_open zero-copy data)
  • cuVS 26.04 CAGRA build/search/serialize via libcuvs
  • PostgreSQL 16 + pgvector 0.8 integration

Acceptance criteria met

  • CREATE INDEX USING cagra triggers GPU build via cuvsCagraBuild
  • Daemon serves >=2 concurrent UDS connections
  • Index persistence: SIGTERM serialize + startup deserialize
  • 4-condition CPU fallback: cost model, enable_cuvs=off, daemon down, circuit breaker
  • pgvector operator classes (<->, <=>, <#>) via cagra AM
  • pg_cuvs_reset_circuit(regclass) admin function

Infrastructure

  • Terraform: GCP A100/L4/H100 VM provisioning
  • Conda-based libcuvs + CUDA toolchain
  • Targeted libstdc++ symlink to avoid ldconfig pollution
  • systemd unit for daemon

Project skills

  • gpu-vm-provision: VM provisioning with failure-mode catalog (depth-2)
  • pg-cuvs-dev: dev workflow, traps and fixes

Known limits

  • pg_cuvs_server runs single-threaded GPU ops (mutex-guarded)
  • Search top_k hardcoded at 100 (planner LIMIT integration deferred)
  • DiskANN/Vamana AM and S3 storage deferred to Phase 2/3

Verified on

  • GCP us-central1-b a2-highgpu-1g (A100-SXM4-40GB)
  • Ubuntu 22.04 LTS + CUDA 12.4 + libcuvs 26.04 + PG 16.14 + pgvector 0.8.0