VectorQueryKind Class

public final class VectorQueryKind
extends ExpandableStringEnum<VectorQueryKind>

The kind of vector query being performed.

Field Summary

Modifier and Type Field and Description
static final VectorQueryKind TEXT

Vector query where a text value that needs to be vectorized is provided.

static final VectorQueryKind VECTOR

Vector query where a raw vector value is provided.

Constructor Summary

Constructor Description
VectorQueryKind()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of VectorQueryKind value.

Method Summary

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

Creates or finds a VectorQueryKind from its string representation.

static Collection<VectorQueryKind> values()

Gets known VectorQueryKind values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

TEXT

public static final VectorQueryKind TEXT

Vector query where a text value that needs to be vectorized is provided.

VECTOR

public static final VectorQueryKind VECTOR

Vector query where a raw vector value is provided.

Constructor Details

VectorQueryKind

@Deprecated
public VectorQueryKind()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of VectorQueryKind value.

Method Details

fromString

public static VectorQueryKind fromString(String name)

Creates or finds a VectorQueryKind from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding VectorQueryKind.

values

public static Collection values()

Gets known VectorQueryKind values.

Returns:

known VectorQueryKind values.

Applies to