Class VectorThresholdKind
java.lang.Object
com.azure.core.util.ExpandableStringEnum<VectorThresholdKind>
com.azure.search.documents.models.VectorThresholdKind
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class VectorThresholdKind
extends com.azure.core.util.ExpandableStringEnum<VectorThresholdKind>
The kind of vector query being performed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final VectorThresholdKindThe results of the vector query will filter based on the '@search.score' value.static final VectorThresholdKindThe results of the vector query will be filtered based on the vector similarity metric. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VectorThresholdKindfromString(String name) Creates or finds a VectorThresholdKind from its string representation.static Collection<VectorThresholdKind> values()Gets known VectorThresholdKind values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
VECTOR_SIMILARITY
The results of the vector query will be filtered based on the vector similarity metric. Note this is the canonical definition of similarity metric, not the 'distance' version. The threshold direction (larger or smaller) will be chosen automatically according to the metric used by the field. -
SEARCH_SCORE
The results of the vector query will filter based on the '@search.score' value. Note this is the @search.score returned as part of the search response. The threshold direction will be chosen for higher @search.score.
-
-
Constructor Details
-
VectorThresholdKind
Deprecated.Use thefromString(String)factory method.Creates a new instance of VectorThresholdKind value.
-
-
Method Details
-
fromString
Creates or finds a VectorThresholdKind from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding VectorThresholdKind.
-
values
Gets known VectorThresholdKind values.- Returns:
- known VectorThresholdKind values.
-
fromString(String)factory method.