Interface RagQueryOrBuilder (3.43.0)

public interface RagQueryOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getQueryCase()

public abstract RagQuery.QueryCase getQueryCase()
Returns
Type Description
RagQuery.QueryCase

getSimilarityTopK()

public abstract int getSimilarityTopK()

Optional. The number of contexts to retrieve.

int32 similarity_top_k = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The similarityTopK.

getText()

public abstract String getText()

Optional. The query in text format to get relevant contexts.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

Optional. The query in text format to get relevant contexts.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for text.

hasText()

public abstract boolean hasText()

Optional. The query in text format to get relevant contexts.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the text field is set.