mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-29 09:11:17 +08:00
Added support for inline filtering with HNSW
This commit is contained in:
6
sql/vector--0.6.1--0.7.0.sql
Normal file
6
sql/vector--0.6.1--0.7.0.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
|
||||
\echo Use "ALTER EXTENSION vector UPDATE TO '0.7.0'" to load this file. \quit
|
||||
|
||||
CREATE OPERATOR CLASS vector_integer_ops
|
||||
DEFAULT FOR TYPE integer USING hnsw AS
|
||||
OPERATOR 2 = (integer, integer);
|
||||
@@ -290,3 +290,9 @@ CREATE OPERATOR CLASS vector_cosine_ops
|
||||
OPERATOR 1 <=> (vector, vector) FOR ORDER BY float_ops,
|
||||
FUNCTION 1 vector_negative_inner_product(vector, vector),
|
||||
FUNCTION 2 vector_norm(vector);
|
||||
|
||||
-- hnsw attributes
|
||||
|
||||
CREATE OPERATOR CLASS vector_integer_ops
|
||||
DEFAULT FOR TYPE integer USING hnsw AS
|
||||
OPERATOR 2 = (integer, integer);
|
||||
|
||||
Reference in New Issue
Block a user