top of page

Vector distances

Vector similarity can be measured using the following

​​

  • Euclidean Distance: calculates the straight-line distance between two vectors.

  • Cosine Similarity: measures the cosine of the angle between two vectors, indicating directional similarity.

  • Dot Product: calculates the sum of the products of corresponding elements, indicating both magnitude and directional similarity.

ChatGPT Image Mar 17, 2026, 12_28_48 PM.png
Euclidean Distance

Imagine drawing a straight line between two points in space. That's basically what Euclidean Distance is – it measures how far apart two vectors are. The shorter the distance, the more similar they are. This is super useful in things like clustering, image processing, and more.

Dot Product

The Dot Product shows how much one vector projects onto another. It gives us insight into their directional relationship:

  • Negative: Opposite directions

  • Zero: Perpendicular vectors

  • Positive: Same direction

Cosine Similarity

Cosine Similarity checks if two vectors are heading in the same direction, regardless of their size.

The score ranges from -1 (opposite directions) to 1 (same direction). Here's how it breaks down:

  • -1: Opposite directions

  •  0: Perpendicular vectors

  • +1: Same direction

© 2035 by ART SCHOOL. Powered and secured by Wix

bottom of page