3 ms·
"As pointed on HackerNews, I forgot to apply the square root for magnitude_a and magnitude_b." Does that mean the example above this sentence is fixed, or does
by nilslindemann 3y ago
"As pointed on HackerNews, I forgot to apply the square root for magnitude_a and magnitude_b."
Does that mean the example above this sentence is fixed, or does it mean it is wrong?
- ashvardanian 3y agoThe latency of the operation will be slightly higher if we add the `sqrt`, only making the difference bigger... bigger than 2500x. PS: Even though it wasn't intended in that specific case, square roots are often avoided in vector search, most commonly in Euclidean distance computations. Even without the square root, the triangle inequality holds, you can use it to find the closest object, it's just you don't know how close it is :)
- deleted 3y ago[deleted]
- nilslindemann 3y agoExcuse me?