Cloud AI Platform v1beta1 API - Class RagQuery (1.0.0-beta12)

public sealed class RagQuery : IMessage<RagQuery>, IEquatable<RagQuery>, IDeepCloneable<RagQuery>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud AI Platform v1beta1 API class RagQuery.

A query to retrieve relevant contexts.

Inheritance

object > RagQuery

Namespace

Google.Cloud.AIPlatform.V1Beta1

Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

Constructors

RagQuery()

public RagQuery()

RagQuery(RagQuery)

public RagQuery(RagQuery other)
Parameter
Name Description
other RagQuery

Properties

HasText

public bool HasText { get; }

Gets whether the "text" field is set

Property Value
Type Description
bool

QueryCase

public RagQuery.QueryOneofCase QueryCase { get; }
Property Value
Type Description
RagQueryQueryOneofCase

RagRetrievalConfig

public RagRetrievalConfig RagRetrievalConfig { get; set; }

Optional. The retrieval config for the query.

Property Value
Type Description
RagRetrievalConfig

Ranking

[Obsolete]
public RagQuery.Types.Ranking Ranking { get; set; }

Optional. Configurations for hybrid search results ranking.

Property Value
Type Description
RagQueryTypesRanking

SimilarityTopK

[Obsolete]
public int SimilarityTopK { get; set; }

Optional. The number of contexts to retrieve.

Property Value
Type Description
int

Text

public string Text { get; set; }

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

Property Value
Type Description
string