Skip to content

Float Vector Cosine Similarity

This node calculates the cosine similarity between two float vectors. It is useful for measuring the cosine of the angle between two non-zero vectors in a multi-dimensional space. The cosine similarity ranges from -1 to 1, where 1 indicates vectors that are identical, 0 indicates orthogonal vectors, and -1 indicates vectors that are diametrically opposed.

  • Vector 1: The first float vector.
  • Vector 2: The second float vector.
  • Similarity: The cosine similarity of the two vectors.
Pin NamePin DescriptionPin TypeValue Type
Vector 1The first float vector.StructArray
Vector 2The second float vector.StructArray
SimilarityThe cosine similarity of the two vectors.StructFloat