RAG from First Principles · Part 3

Similarity playground

Drag either vector's tip. Watch the four scores change.

A B
Cosine similarity0.00
Dot product0.00
Euclidean distance0.00
Angle
Unit length, so dot product = cosine similarity.

Drag a tip, or Tab to a tip and use .