1

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
asked Dec 5, 2025 at 7:49

1 Answer 1

2

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.

answered Dec 5, 2025 at 8:12
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.