Class SemanticRetrieverConfig
Configuration for retrieving grounding content from a Corpus or Document created using the Semantic Retriever API.
Inherited Members
Namespace: Glitch9.AIDevKit.Google
Assembly: Glitch9.AIDevKit.Provider.Google.dll
Syntax
public class SemanticRetrieverConfig
Properties
| Edit this page View SourceMaxChunksCount
Optional. Maximum number of relevant Chunks to retrieve.
Declaration
[JsonProperty("maxChunksCount")]
public int MaxChunksCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
MetadataFilters
Optional. Filters for selecting Documents and/or Chunks from the resource.
Declaration
[JsonProperty("metadataFilters")]
public List<MetadataFilter> MetadataFilters { get; set; }
Property Value
| Type | Description |
|---|---|
| List<MetadataFilter> |
MinimumRelevanceScore
Optional. Minimum relevance score for retrieved relevant Chunks.
Declaration
[JsonProperty("minimumRelevanceScore")]
public float MinimumRelevanceScore { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Query
Required. Query to use for similarity matching Chunks in the given resource.
Declaration
[JsonProperty("query")]
public GeminiContent Query { get; set; }
Property Value
| Type | Description |
|---|---|
| GeminiContent |
Source
Required. Name of the resource for retrieval, e.g. corpora/123 or corpora/123/documents/abc.
Declaration
[JsonProperty("source")]
public string Source { get; set; }
Property Value
| Type | Description |
|---|---|
| string |