Skip to content

Vector Examples

These examples cover vector search basics, vector index management, and vector search tuning.

Core Path

Example Scope
Vector Search Basics Exact SQL ordering with <->, <#>, and <=> before adding an index
Bulk Load and Build a Vector Index COPY, HNSW index build, fence_vector_index, and vectoron_index_stat
Tune Vamana Search L2 Vamana build options and transaction-local search width
Filtered Search with VBase Scalar predicates and vector ordering in one PostgreSQL query
Check Vector Index State Index state checks after create, fence, and additional writes

Appendix

Example Scope
Compare Index Families Flat, HNSW, IVF, and Vamana syntax comparison
Tune HNSW Queries HNSW build options and vectoron.hnsw_ef_search
Tune IVF Queries IVF nlist and vectoron.ivf_nprobe
Use Vector Types Small exact-search examples for vector, vecf16, svector, and bvector