milvus-logo

MetricType

The enumeration of all available metric types in Milvus.

package io.milvus.param;
public enum MetricType
TypeCodeDescription
INVALID0For internal usage.
L21Euclidean distance. Only for float vectors.
IP2Inner product. Only for normalized float vectors.
HAMMING3Only for binary vectors.
JACCARD4Only for binary vectors.
TANIMOTO5Only for binary vectors.
SUBSTRUCTURE6Only for binary vectors.
SUPERSTRUCTURE7Only for binary vectors.