SimilaritySearchParams

Parameters for semantic similarity search based retrieval.

Fields
searchQuery string

Required. Query to use for similarity search retrieval. If provided, then the parent ReasoningEngine must have ReasoningEngineContextSpec.MemoryBankConfig.SimilaritySearchConfig set.

topK integer

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.

JSON representation
{
  "searchQuery": string,
  "topK": integer
}