sql: support pgvector #121432
Labels
A-vector-index
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-sql-queries
SQL Queries Team
The
pgvector
Postgres extension is a popular extension that adds support for vector similarity indexing and search.This issue tracks adding support to CockroachDB.
Types
vector
typebit
typehalfvec
typesparsevec
typeOperators
+
operator-
operator*
operator||
operator (concatenate)<->
operator (l2 distance)<#>
operator (negative inner product)<=>
operator (cosine distance)<+>
operator (taxicab/l1 distance)<~>
operator (Hamming distance forbit
type)<%>
operator (Jaccard distance forbit
type)Builtin functions
cosine_distance
functioninner_product
functionl2_distance
functionl1_distance
functionl2_normalize
functionvector_dims
functionvector_norm
functionsubvector
functionbinary_quantize
functionhamming_distance
functionjaccard_distance
functionavg
aggregate functionsum
aggregate functionIndexing
ivfflat
indexhnsw
index<->
,<#>
and<=>
operators depending on which opclass is chosen at index creation time (vector_l2_ops
,vector_ip_ops
,vector_cosine_ops
)Configuration options
ivfflat.probes
- defines # of centroid lists to search during lookupJira issue: CRDB-37252
The text was updated successfully, but these errors were encountered: