Interface SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder (0.38.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
Type Description
String

The fieldPath.

getFieldPathBytes()

public abstract ByteString getFieldPathBytes()

Embedding field path in schema.

string field_path = 1;

Returns
Type Description
ByteString

The bytes for fieldPath.

getVector(int index)

public abstract float getVector(int index)

Query embedding vector.

repeated float vector = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
float

The vector at the given index.

getVectorCount()

public abstract int getVectorCount()

Query embedding vector.

repeated float vector = 2;

Returns
Type Description
int

The count of vector.

getVectorList()

public abstract List<Float> getVectorList()

Query embedding vector.

repeated float vector = 2;

Returns
Type Description
List<Float>

A list containing the vector.