Euclidean Dot Product Formula

A⋅B=∥A∥2∥B∥2cos⁡θA \cdot B=\|A\|_2\|B\|_2 \cos \theta

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

Also see Cosine Similarity