SZ-ORM pgvector Extension
Provides PostgreSQL pgvector vector similarity search capabilities, supporting three implementations:
- In-memory implementation (
InMemoryVectorStore): Pure Rust vector computation, no database connection, suitable for testing and benchmarking - Stub implementation (
StubVectorStore): All methods return Unsupported, suitable for debug placeholder - Real implementation (
RealPgVectorStore, requiresreal-pgfeature): Connects to PostgreSQL + pgvector via tokio-postgres
Quick Start
use ;
#
# async