DistanceMetric

The metric to use to determine the distance between vectors in your index. You can use one of the following values:

  • L2

  • Cosine

  • InnerProduct. If you use InnerProduct then your vectors must be pre-normalized.

NOTE: You can set the DistanceMetric configuration parameter as a field property for a VectorType to set the distance metric individually for different vector fields. In this case, the value the field property takes precedence. The value in the [VectorIndex] section is the default value when the field property value is not set.

Type: String
Default: L2
Required: No
Configuration Section: VectorIndex
Example: DistanceMetric=L2
See Also: