
DatabasesGuide
Vector Search From Rust With pgvector and Embeddings
pgvector adds a vector type and nearest-neighbor operators to Postgres. From Rust you store embeddings as arrays, index them with HNSW and query with an ORDER BY on distance.
18 min read