Content Component 26.1
Content Component Help

# 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: |

Copyright 2025 Open Text
Version 26.1 | Last updated January 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Content Component 26.1

Topic Title: DistanceMetric