Interface SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder (0.33.0)

public static interface SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getFieldPath()

public abstract String getFieldPath()

Embedding field path in schema.

string field_path = 1;

Returns
TypeDescription
String

The fieldPath.

getFieldPathBytes()

public abstract ByteString getFieldPathBytes()

Embedding field path in schema.

string field_path = 1;

Returns
TypeDescription
ByteString

The bytes for fieldPath.

getVector(int index)

public abstract float getVector(int index)

Query embedding vector.

repeated float vector = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
float

The vector at the given index.

getVectorCount()

public abstract int getVectorCount()

Query embedding vector.

repeated float vector = 2;

Returns
TypeDescription
int

The count of vector.

getVectorList()

public abstract List<Float> getVectorList()

Query embedding vector.

repeated float vector = 2;

Returns
TypeDescription
List<Float>

A list containing the vector.