Partager via


VectorSearchAlgorithmKind Class

public final class VectorSearchAlgorithmKind
extends ExpandableStringEnum<VectorSearchAlgorithmKind>

The algorithm used for indexing and querying.

Field Summary

Modifier and Type Field and Description
static final VectorSearchAlgorithmKind EXHAUSTIVE_KNN

Exhaustive KNN algorithm which will perform brute-force search.

static final VectorSearchAlgorithmKind HNSW

HNSW (Hierarchical Navigable Small World), a type of approximate nearest neighbors algorithm.

Constructor Summary

Constructor Description
VectorSearchAlgorithmKind()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of VectorSearchAlgorithmKind value.

Method Summary

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

Creates or finds a VectorSearchAlgorithmKind from its string representation.

static Collection<VectorSearchAlgorithmKind> values()

Gets known VectorSearchAlgorithmKind values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

EXHAUSTIVE_KNN

public static final VectorSearchAlgorithmKind EXHAUSTIVE_KNN

Exhaustive KNN algorithm which will perform brute-force search.

HNSW

public static final VectorSearchAlgorithmKind HNSW

HNSW (Hierarchical Navigable Small World), a type of approximate nearest neighbors algorithm.

Constructor Details

VectorSearchAlgorithmKind

@Deprecated
public VectorSearchAlgorithmKind()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of VectorSearchAlgorithmKind value.

Method Details

fromString

public static VectorSearchAlgorithmKind fromString(String name)

Creates or finds a VectorSearchAlgorithmKind from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding VectorSearchAlgorithmKind.

values

public static Collection values()

Gets known VectorSearchAlgorithmKind values.

Returns:

known VectorSearchAlgorithmKind values.

Applies to