View Source Pgvector.Ecto.Query (pgvector v0.2.0)

Distance functions for Ecto

Link to this section Summary

Functions

Returns the cosine distance

Returns the L2 distance

Returns the negative inner product

Link to this section Functions

Link to this macro

cosine_distance(column, value)

View Source (macro)

Returns the cosine distance

Link to this macro

l2_distance(column, value)

View Source (macro)

Returns the L2 distance

Link to this macro

max_inner_product(column, value)

View Source (macro)

Returns the negative inner product