1.0.0-beta87 (latest) 1.0.0-beta86

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

Reference documentation and code samples for the Vertex AI v1beta1 API class VertexRagStore.

Retrieve from Vertex RAG Store for grounding.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> VertexRagStore

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[VertexRagStore](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.VertexRagStore), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[VertexRagStore](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.VertexRagStore), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[VertexRagStore](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.VertexRagStore), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.AIPlatform.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)

## Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

## Constructors

### VertexRagStore()

    public VertexRagStore()

### VertexRagStore(VertexRagStore)

    public VertexRagStore(VertexRagStore other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.VertexRagStore` |

## Properties

### HasSimilarityTopK

    [Obsolete]
    public bool HasSimilarityTopK { get; }

Gets whether the "similarity_top_k" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasVectorDistanceThreshold

    [Obsolete]
    public bool HasVectorDistanceThreshold { get; }

Gets whether the "vector_distance_threshold" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### RagCorpora

    [Obsolete]
    public RepeatedField<string> RagCorpora { get; }

Optional. Deprecated. Please use rag_resources instead.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### RagCorporaAsRagCorpusNames

    [Obsolete]
    public ResourceNameList<RagCorpusName> RagCorporaAsRagCorpusNames { get; }

[RagCorpusName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RagCorpusName)-typed view over the [RagCorpora](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.VertexRagStore#Google_Cloud_AIPlatform_V1Beta1_VertexRagStore_RagCorpora) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNameList-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RagCorpusName` |   |

### RagResources

    public RepeatedField<VertexRagStore.Types.RagResource> RagResources { get; }

Optional. The representation of the rag source. It can be used to specify
corpus only or ragfiles. Currently only support one corpus or multiple
files from one corpus. In the future we may open up multiple corpora
support.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.VertexRagStorehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.VertexRagStore.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.VertexRagStore.Types.RagResource` |   |

### RagRetrievalConfig

    public RagRetrievalConfig RagRetrievalConfig { get; set; }

Optional. The retrieval config for the Rag query.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RagRetrievalConfig` |   |

### SimilarityTopK

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

Optional. Number of top k results to return from the selected corpora.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### StoreContext

    public bool StoreContext { get; set; }

Optional. Currently only supported for Gemini Multimodal Live API.

In Gemini Multimodal Live API, if `store_context` bool is
true, Gemini will leverage it to automatically memorize the
interactions between the client and Gemini, and retrieve context when
needed to augment the response generation for users' ongoing and future
interactions.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### VectorDistanceThreshold

    [Obsolete]
    public double VectorDistanceThreshold { get; set; }

Optional. Only return results with vector distance smaller than the
threshold.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.double` |   |