Euclidean Dot Product Formula

AB=A2B2cosθA \cdot B=\|A\|_2\|B\|_2 \cos \theta

where θ\theta is the angle between AA and BB.

Also see Cosine Similarity