Re:Searching a Codebase in English
by byearthithatius on Tuesday August 20, 2024 @02:22PM
(#41302555)
So this would be the highest dot product. Finding the lowest(closest to zero) would mean the two vectors are closer to orthogonal and thus very _not_ similar in direction (semantic meaning). If negative they are semantically opposite.
Re:Searching a Codebase in English
by dakshgupta on Tuesday August 20, 2024 @08:01PM
(#41305353)
Good catch! This is a mistake, fixing now.
We want to maximize the normalized dot product (or cosine similarity) to find semantically similar text chunks.