İngilizce dilinde oku

Aracılığıyla paylaş


VectorThresholdKind Class

public final class VectorThresholdKind
extends ExpandableStringEnum<VectorThresholdKind>

The kind of vector query being performed.

Field Summary

Modifier and Type Field and Description
static final VectorThresholdKind SEARCH_SCORE

The results of the vector query will filter based on the '@search.score' value.

static final VectorThresholdKind VECTOR_SIMILARITY

The results of the vector query will be filtered based on the vector similarity metric.

Constructor Summary

Constructor Description
VectorThresholdKind()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of VectorThresholdKind value.

Method Summary

Modifier and Type Method and Description
static VectorThresholdKind fromString(String name)

Creates or finds a VectorThresholdKind from its string representation.

static Collection<VectorThresholdKind> values()

Gets known VectorThresholdKind values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

SEARCH_SCORE

public static final VectorThresholdKind 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.

VECTOR_SIMILARITY

public static final VectorThresholdKind 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.

Constructor Details

VectorThresholdKind

@Deprecated
public VectorThresholdKind()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of VectorThresholdKind value.

Method Details

fromString

public static VectorThresholdKind fromString(String name)

Creates or finds a VectorThresholdKind from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding VectorThresholdKind.

values

public static Collection values()

Gets known VectorThresholdKind values.

Returns:

known VectorThresholdKind values.

Applies to

Azure SDK for Java

Preview