Parameters for semantic similarity search based retrieval.
Attributes
Name
Description
search_query
str
Required. Query to use for similarity search retrieval. If
provided, then the parent ReasoningEngine must have
ReasoningEngineContextSpec.MemoryBankConfig.SimilaritySearchConfig
set.
top_k
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-17 UTC."],[],[]]