Share via


VectorDistanceMetric Enum

Definition

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

Applies to