pgvector.git / summary / log / commit / refs

commit    881fbc15efe720fc41332df8b8b4f90729910677
Author:   Andrew Kane <andrew@ankane.org>
Date:     Mon Apr 22 20:22:28 2024 +0000

    Added L1 distance operator to docs [skip ci]


README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ae48583a..7b29d1fd 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ Get the nearest neighbors by L2 distance SELECT * FROM items ORDER BY embedding <-> '[3,1,2]' LIMIT 5; ``` -Also supports inner product (`<#>`) and cosine distance (`<=>`) +Also supports inner product (`<#>`), cosine distance (`<=>`), and L1 distance (`<+>`, unreleased) Note: `<#>` returns the negative inner product since Postgres only supports `ASC` order index scans on operators @@ -143,6 +143,7 @@ Supported distance functions are: - `<->` - L2 distance - `<#>` - (negative) inner product - `<=>` - cosine distance +- `<+>` - L1 distance (unreleased) Get the nearest neighbors to a row [parent: f9941c29922e]