Skip to content

Commit

Permalink
Change return type of pinecone metric name functions to int4
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarlaird committed Feb 24, 2024
1 parent bdfa01e commit 8a2fe09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sql/vector.sql
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ CREATE FUNCTION vector_combine(double precision[], double precision[]) RETURNS d

-- pinecone name functions

CREATE FUNCTION vector_l2_pinecone_metric_name() RETURNS cstring
CREATE FUNCTION vector_l2_pinecone_metric_name() RETURNS int4
AS 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE;

CREATE FUNCTION vector_ip_pinecone_metric_name() RETURNS cstring
CREATE FUNCTION vector_ip_pinecone_metric_name() RETURNS int4
AS 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE;

CREATE FUNCTION vector_cosine_pinecone_metric_name() RETURNS cstring
CREATE FUNCTION vector_cosine_pinecone_metric_name() RETURNS int4
AS 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE;

-- aggregates
Expand Down

0 comments on commit 8a2fe09

Please sign in to comment.