MetricType
This is an enumeration that provides the following constants.
Constants
-
INVALID
Sets the metric type to INVALID.
-
L2
Sets the metric type to L2. This applies to float vectors only.
-
IP
Sets the metric type to IP. This applies to float vectors only.
-
COSINE
Sets the metric type to COSINE. This applies to float vectors only.
-
HAMMING
Sets the metric type to HAMMING. This applies to binary vectors only.
-
JACCARD
Sets the metric type to JACCARD. This applies to binary vectors only.
-
BM25
Sets the metric type to BM25. This applies to sparse vector fields derived from BM25 functions.
-
MAX_SIM
Sets the metric type to MAX_SIM. This applies only to all vectors in Struct elements.
-
MAX_SIM_COSINE
Sets the metric type to MAX_SIM_COSINE. This applies only to float vectors in Struct elements.
-
MAX_SIM_IP
Sets the metric type to MAX_SIM_IP. This applies only to float vectors in Struct elements.
-
MAX_SIM_L2
Sets the metric type to MAX_SIM_L2. This applies only to float vectors in Struct elements.
-
MAX_SIM_JACCARD
Sets the metric type to MAX_SIM_JACCARD. This applies only to binary vectors in Struct elements.
-
MAX_SIM_HAMMING
Sets the metric type to MAX_SIM_HAMMING. This applies only to binary vectors in Struct elements.