Class SemanticRetrieverConfig
Configuration for retrieving grounding content from a Corpus or Document created using the Semantic Retriever API.
Inheritance
object
SemanticRetrieverConfig
Namespace: Glitch9.AIDevKit.Google
Assembly: .dll
Syntax
public class SemanticRetrieverConfig
Properties
MaxChunksCount
Optional. Maximum number of relevant Chunks to retrieve.
Declaration
public int MaxChunksCount { get; set; }
Property Value
Type | Description |
---|---|
int |
MetadataFilters
Optional. Filters for selecting Documents and/or Chunks from the resource.
Declaration
public List<MetadataFilter> MetadataFilters { get; set; }
Property Value
Type | Description |
---|---|
List<MetadataFilter> |
MinimumRelevanceScore
Optional. Minimum relevance score for retrieved relevant Chunks.
Declaration
public float MinimumRelevanceScore { get; set; }
Property Value
Type | Description |
---|---|
float |
Query
Required. Query to use for similarity matching Chunks in the given resource.
Declaration
public Content Query { get; set; }
Property Value
Type | Description |
---|---|
Content |
Source
Required. Name of the resource for retrieval, e.g. corpora/123 or corpora/123/documents/abc.
Declaration
public string Source { get; set; }
Property Value
Type | Description |
---|---|
string |