public sealed class RagQuery : IMessage<RagQuery>, IEquatable<RagQuery>, IDeepCloneable<RagQuery>, IBufferMessage, IMessageReference documentation and code samples for the Vertex AI v1beta1 API class RagQuery.
A query to retrieve relevant contexts.
Namespace
Google.Cloud.AIPlatform.V1Beta1Assembly
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 |
|