CosmosVectorDistanceFunction Enum

  • java.lang.Object
    • java.lang.Enum
      • com.azure.cosmos.models.CosmosVectorDistanceFunction

public enum CosmosVectorDistanceFunction
extends Enum<CosmosVectorDistanceFunction>

Distance Function for the embeddings in the Cosmos DB database service.

Fields

COSINE

Represents the cosine distance function.

DOT_PRODUCT

Represents the dot product distance function.

EUCLIDEAN

Represents the euclidean distance function.

Methods inherited from java.lang.Enum

Methods inherited from java.lang.Object

Methods

fromString(String value)

public static CosmosVectorDistanceFunction fromString(String value)

Method to retrieve the enum constant by its overWireValue.

Parameters

value
String
the overWire value of the enum constant

Returns

the matching CosmosVectorDataType

toString()

public String toString()

Returns

Overrides
java.lang.Enum.toString()

valueOf(String name)

public static CosmosVectorDistanceFunction valueOf(String name)

Parameters

name
String

Returns

values()

public static CosmosVectorDistanceFunction[] values()

Returns

Applies to