pgvector.git / summary / log / commit / refs

commit    258eaf58fdaff1843617ff59ea855e0768243fe9
Author:   Andrew Kane <andrew@ankane.org>
Date:     Wed May 08 17:40:55 2024 +0000

    Added halfvec and sparsevec opclasses to readme - closes #540 [skip ci]


README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 82b8052f..7525b698 100644 --- a/README.md +++ b/README.md @@ -217,6 +217,8 @@ L2 distance CREATE INDEX ON items USING hnsw (embedding vector_l2_ops); ``` +Note: Use `halfvec_l2_ops` for `halfvec` and `sparsevec_l2_ops` for `sparsevec` (and similar with the other distance functions) + Inner product ```sql @@ -345,6 +347,8 @@ L2 distance CREATE INDEX ON items USING ivfflat (embedding vector_l2_ops) WITH (lists = 100); ``` +Note: Use `halfvec_l2_ops` for `halfvec` (and similar with the other distance functions) + Inner product ```sql [parent: fa8d2df1cc44]