dot product

The sum of the products of two vectors' matching values, a similarity score that grows with both alignment and length.

In more detail

For unit-length vectors the dot product equals cosine similarity and is the cheapest to compute, which is why many embedding models normalise their output. Without normalisation, longer vectors score higher whatever their direction, so check what the model recommends.

Related terms

Taught in

References

Certification courses