Search Results for

    Show / Hide Table of Contents

    Class SemanticRetrieverConfig

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

    Inheritance
    object
    SemanticRetrieverConfig
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Google
    Assembly: Glitch9.AIDevKit.Provider.Google.dll
    Syntax
    public class SemanticRetrieverConfig

    Properties

    | Edit this page View Source

    MaxChunksCount

    Optional. Maximum number of relevant Chunks to retrieve.

    Declaration
    [JsonProperty("maxChunksCount")]
    public int MaxChunksCount { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    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>
    | Edit this page View Source

    MinimumRelevanceScore

    Optional. Minimum relevance score for retrieved relevant Chunks.

    Declaration
    [JsonProperty("minimumRelevanceScore")]
    public float MinimumRelevanceScore { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    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
    | Edit this page View Source

    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

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation