IndexMetric#

class scio.utils.IndexMetric(value)[source]#

Bases: str, EnumWithExplicitSupport

Enum for supported metric values in Index.

Member

Value

Description

IP

'ip'

Inner Product metric. For \(L^2\)-normalized samples, equivalent to cosine similarity.

L2

'l2'

\(L^2\) metric.