I got Incorrect arguments to vector_distance error when I execute the following SQL:
set @value = EMBEDDING('ecs server', 'text-embedding-v4', 1024);
SELECT doc, DISTANCE(vec, @value, 'COSINE') as distance
FROM r
ORDER BY distance
LIMIT 30
Please help me or guide me to solve this issue with your experience.
DarkBee
14.4k9 gold badges86 silver badges135 bronze badges
1 Answer 1
Check the result of select hex(@value);
If the result is empty string, then check the value of parameter named 'dashcope_sk'.
If the value of parameter is empty, then set it with ur own service key of dashscope from Alibaba Cloud.
Sign up to request clarification or add additional context in comments.