SemanticRetrieverConfig Class

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

Definition

Namespace: GenerativeAI.Types
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public class SemanticRetrieverConfig
Inheritance
Object    SemanticRetrieverConfig

Constructors

SemanticRetrieverConfigInitializes a new instance of the SemanticRetrieverConfig class

Properties

MaxChunksCount Optional. Maximum number of relevant Chunks to retrieve.
MetadataFilters Optional. Filters for selecting Documents and/or Chunks from the resource.
MinimumRelevanceScore Optional. Minimum relevance score for retrieved relevant Chunks.
Query Required. Query to use for matching Chunks in the given resource by similarity.
Source Required. Name of the resource for retrieval. Example: corpora/123 or corpora/123/documents/abc.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also