Interface RagContexts.ContextOrBuilder (3.55.0)

public static interface RagContexts.ContextOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDistance()

public abstract double getDistance()

The distance between the query dense embedding vector and the context text vector.

double distance = 3;

Returns
Type Description
double

The distance.

getSourceUri()

public abstract String getSourceUri()

For vertex RagStore, if the file is imported from Cloud Storage or Google Drive, source_uri will be original file URI in Cloud Storage or Google Drive; if file is uploaded, source_uri will be file display name.

string source_uri = 1;

Returns
Type Description
String

The sourceUri.

getSourceUriBytes()

public abstract ByteString getSourceUriBytes()

For vertex RagStore, if the file is imported from Cloud Storage or Google Drive, source_uri will be original file URI in Cloud Storage or Google Drive; if file is uploaded, source_uri will be file display name.

string source_uri = 1;

Returns
Type Description
ByteString

The bytes for sourceUri.

getSparseDistance()

public abstract double getSparseDistance()

The distance between the query sparse embedding vector and the context text vector.

double sparse_distance = 4;

Returns
Type Description
double

The sparseDistance.

getText()

public abstract String getText()

The text chunk.

string text = 2;

Returns
Type Description
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

The text chunk.

string text = 2;

Returns
Type Description
ByteString

The bytes for text.