VectorDistanceMetric Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Supported distance metrics are {L2, IP, COSINE}. The default value is "COSINE". https://redis.io/docs/interact/search-and-query/search/vectors/
public enum VectorDistanceMetric
type VectorDistanceMetric =
Public Enum VectorDistanceMetric
- Inheritance
-
VectorDistanceMetric
Fields
Name | Value | Description |
---|---|---|
L2 | 0 | Euclidean distance between two vectors |
IP | 1 | Inner product of two vectors |
COSINE | 2 | Cosine distance of two vectors |