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
SELECT * FROM items ORDER BY embedding <-> '[3,1,2]' LIMIT 5;
SELECT (embedding <#> '[3,1,2]') * -1 AS inner_product FROM items;
SELECT 1 - (embedding <=> '[3,1,2]') AS cosine_similarity FROM items;
Currently if we write these queries directly, the parser will try to parse it as AST tree, which causes an error since <->, <#>, <=> are not supported operators.
Might need to add those column in the lexer, and modify renderer.
The text was updated successfully, but these errors were encountered:
Example:
Currently if we write these queries directly, the parser will try to parse it as AST tree, which causes an error since
<->
,<#>
,<=>
are not supported operators.Might need to add those column in the lexer, and modify renderer.
The text was updated successfully, but these errors were encountered: