mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-29 17:21:16 +08:00
Started half indexing
This commit is contained in:
@@ -377,3 +377,10 @@ CREATE OPERATOR <=> (
|
||||
LEFTARG = half[], RIGHTARG = half[], PROCEDURE = cosine_distance,
|
||||
COMMUTATOR = '<=>'
|
||||
);
|
||||
|
||||
-- half opclasses
|
||||
|
||||
CREATE OPERATOR CLASS half_l2_ops
|
||||
FOR TYPE half[] USING hnsw AS
|
||||
OPERATOR 1 <-> (half[], half[]) FOR ORDER BY float_ops,
|
||||
FUNCTION 1 half_l2_squared_distance(half[], half[]);
|
||||
|
||||
Reference in New Issue
Block a user