Table of Contents

Class VertexRagStore

Namespace
GenerativeAI.Types.RagEngine
Assembly
GenerativeAI.dll

Retrieve from Vertex RAG Store for grounding.

public class VertexRagStore
Inheritance
VertexRagStore
Inherited Members
Extension Methods

Properties

RagCorpora

Optional. Deprecated. Please use rag_resources instead.

[JsonPropertyName("ragCorpora")]
public List<string>? RagCorpora { get; set; }

Property Value

List<string>

RagResources

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.

[JsonPropertyName("ragResources")]
public ICollection<VertexRagStoreRagResource>? RagResources { get; set; }

Property Value

ICollection<VertexRagStoreRagResource>

RagRetrievalConfig

Optional. The retrieval config for the Rag query.

[JsonPropertyName("ragRetrievalConfig")]
public RagRetrievalConfig? RagRetrievalConfig { get; set; }

Property Value

RagRetrievalConfig

SimilarityTopK

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

[JsonPropertyName("similarityTopK")]
public int? SimilarityTopK { get; set; }

Property Value

int?

StoreContext

Optional. Currently only supported for Gemini Multimodal Live API. If storeContext is specified, 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.

[JsonPropertyName("storeContext")]
public bool? StoreContext { get; set; }

Property Value

bool?

VectorDistanceThreshold

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

[JsonPropertyName("vectorDistanceThreshold")]
public float? VectorDistanceThreshold { get; set; }

Property Value

float?