DB
FunctionsVector

inner_product

Computes sum_i a_i * b_i over two equal-length array(float64) embeddings encoded as JSON-array text. Length mismatch yields NULL. For maximum-inner-product ANN ordering, use negative_inner_product …

inner_product(…) → Float64

Kind · scalar

Computes sum_i a_i * b_i over two equal-length array(float64) embeddings encoded as JSON-array text. Length mismatch yields NULL. For maximum-inner-product ANN ordering, use negative_inner_product so smaller sorts first.

Part of the Vector family.