Table of Contents

Class SemanticRetrieverConfig

Configuration for retrieving grounding content from a Corpus or Document created using the Semantic Retriever API.

public class SemanticRetrieverConfig
Inheritance
object
SemanticRetrieverConfig

Properties

MaxChunksCount

Optional. Maximum number of relevant Chunks to retrieve.

public int MaxChunksCount { get; set; }

Property Value

int

MetadataFilters

Optional. Filters for selecting Documents and/or Chunks from the resource.

public List<MetadataFilter> MetadataFilters { get; set; }

Property Value

List<MetadataFilter>

MinimumRelevanceScore

Optional. Minimum relevance score for retrieved relevant Chunks.

public float MinimumRelevanceScore { get; set; }

Property Value

float

Query

Required. Query to use for similarity matching Chunks in the given resource.

public GeminiContent Query { get; set; }

Property Value

GeminiContent

Source

Required. Name of the resource for retrieval, e.g. corpora/123 or corpora/123/documents/abc.

public string Source { get; set; }

Property Value

string