Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Incomplete
-
11.7.2
-
None
Description
If you order the result from VECTOR_DISTANCE_COSINE(column) using ASC you will end up with an empty result set. Use DESC instead and everything will work.
Replication:
SELECT VEC_DISTANCE_COS(some_emb_col, VEC_FromText(some_text_vec)) AS score FROM emb_table ORDER BY score ASC LIMIT 2