You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BEGIN RETURN query
SELECTdocuments.id,
documents.content,
documents.metadataAS documents_metadata,
1- (documents.embedding<=> query_embedding) AS similarity
FROM
documents
ORDER BYdocuments.embedding<=> query_embedding
LIMIT
match_count;
END;
Expected Output
BEGIN RETURN query
SELECTdocuments.id,
documents.content,
documents.metadataAS documents_metadata,
1- (documents.embedding<=> query_embedding) AS similarity
FROM
documents
ORDER BYdocuments.embedding<=> query_embedding
LIMIT
match_count;
END;
Actual Output
BEGIN RETURN query
SELECTdocuments.id,
documents.content,
documents.metadataAS documents_metadata,
1- (documents.embedding<=> query_embedding) AS similarity
FROM
documents
ORDER BYdocuments.embedding<=> query_embedding
LIMIT
match_count;
END;
Usage
How are you calling / using the library?
VSCode (yes, I've set the dialect).
What SQL language(s) does this apply to?
Postgres
Which SQL Formatter version are you using?
Extension version 1.6.0
The text was updated successfully, but these errors were encountered:
So, as I understand, this is not a builtin operator in PostgreSQL, but rather a custom one provided by the pgvector extension, among several other operators.
Input data
Which SQL and options did you provide as input?
LangChain function for vector search.
Expected Output
Actual Output
Usage
How are you calling / using the library?
VSCode (yes, I've set the dialect).
What SQL language(s) does this apply to?
Postgres
Which SQL Formatter version are you using?
Extension version 1.6.0
The text was updated successfully, but these errors were encountered: