Module dot_product

Source
Expand description

Dot product distance metric (for maximum inner product search).

Returns negative dot product so that smaller values = more similar (consistent with other distance metrics where lower = better).

Structsยง

DotProductDistance
Negative dot product distance: $d(a, b) = -a \cdot b$.