Interface RagQueryOrBuilder (3.55.0)

public interface RagQueryOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getQueryCase()

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

getRanking()

public abstract RagQuery.Ranking getRanking()

Optional. Configurations for hybrid search results ranking.

.google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagQuery.Ranking

The ranking.

getRankingOrBuilder()

public abstract RagQuery.RankingOrBuilder getRankingOrBuilder()

Optional. Configurations for hybrid search results ranking.

.google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagQuery.RankingOrBuilder

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.

hasRanking()

public abstract boolean hasRanking()

Optional. Configurations for hybrid search results ranking.

.google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the ranking field is set.

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.