RetrieveMemoriesRequest_SimilaritySearchParams class final
Parameters for semantic similarity search based retrieval.
- Inheritance
-
- Object
- ProtoMessage
- RetrieveMemoriesRequest_SimilaritySearchParams
Constructors
- RetrieveMemoriesRequest_SimilaritySearchParams({required String searchQuery, int topK = 0})
- RetrieveMemoriesRequest_SimilaritySearchParams.fromJson(Object? j)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchQuery → String
-
Required. Query to use for similarity search retrieval. If provided, then
the parent ReasoningEngine must have
ReasoningEngineContextSpec.MemoryBankConfig.SimilaritySearchConfigset.final - topK → int
-
Optional. The maximum number of memories to return.
The service may return fewer than this value. If unspecified, at most 3
memories will be returned. The maximum value is 100; values above 100
will be coerced to 100.
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