Enum Class VectorIndexType.DistanceType
java.lang.Object
java.lang.Enum<VectorIndexType.DistanceType>
io.micronaut.data.annotation.VectorIndexType.DistanceType
- All Implemented Interfaces:
Serializable, Comparable<VectorIndexType.DistanceType>, Constable
- Enclosing class:
VectorIndexType
Distance (similarity) metric to use for vector searches.
- Since:
- 5.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCosine distance/similarity metric.Dot-product (inner product) metric.Manhattan (L1) distance metric.Euclidean (L2) distance metric.Squared Euclidean (L2) distance metric. -
Method Summary
Modifier and TypeMethodDescriptionstatic VectorIndexType.DistanceTypeReturns the enum constant of this class with the specified name.static VectorIndexType.DistanceType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COSINE
Cosine distance/similarity metric. -
DOT
Dot-product (inner product) metric. -
L1_MANHATTAN
Manhattan (L1) distance metric. -
L2_EUCLIDEAN_SQUARED
Squared Euclidean (L2) distance metric. -
L2_EUCLIDEAN
Euclidean (L2) distance metric.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-