SemanticRetrieverConfig class final

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

Inheritance
  • Object
  • ProtoMessage
  • SemanticRetrieverConfig

Constructors

SemanticRetrieverConfig({required String source, required Content? query, List<MetadataFilter> metadataFilters = const [], int? maxChunksCount, double? minimumRelevanceScore})
SemanticRetrieverConfig.fromJson(Object? j)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
maxChunksCount int?
Optional. Maximum number of relevant Chunks to retrieve.
final
metadataFilters List<MetadataFilter>
Optional. Filters for selecting Documents and/or Chunks from the resource.
final
minimumRelevanceScore double?
Optional. Minimum relevance score for retrieved relevant Chunks.
final
qualifiedName String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
query Content?
Required. Query to use for matching Chunks in the given resource by similarity.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String
Required. Name of the resource for retrieval. Example: corpora/123 or corpora/123/documents/abc.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Object
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

fullyQualifiedName → const String