Skip to content

Reference

Recherche Memoire

Searches the agent's persistent memory by semantic similarity. Allows retrieving information stored in previous sessions.

1 min

Searches the agent's persistent memory by semantic similarity. Allows retrieving information stored in previous sessions.

Parameters

ParameterTypeRequiredVariableDescription
querydynamic valueYesYesText or question to search in the agent long-term memory.
limitnumberNoNoMaximum number of results to return. (Default: 10)
minScorenumberNoNoMinimum similarity score (between 0 and 1). Only results above this threshold are returned. (Default: 0.7, min 0, max 1)
entityIddynamic valueNoYesFilter results by entity identifier.
tagsarrayNoNoFilter results by tags.
dateFromdynamic valueNoYesStart date for the time range filter (ISO 8601).
dateTodynamic valueNoYesEnd date for the time range filter (ISO 8601).
includeMetadatabooleanNoNoInclude metadata in the results. (Default: false)
sortBychoice (score, date, importance)NoNoResult sorting criterion: by similarity score, by date, or by importance. (Default: "score")
outputVariabletextNoNoOutput variable name containing the retrieved memories.

Parameters marked Variable = Yes accept the {{blockName.field}} syntax.

Output

Output variable : memorySearchResult

{
  "memories": [],
  "totalCount": 0,
  "query": "...",
  "hasVectorSearch": false
}

Example

Search the agent's memory.

Input :

{"query": "preferences client Acme"}

Output :

{"results": [{"key": "client-acme", "content": "Prefere les livraisons le mardi", "score": 0.88}], "count": 1}

Tip Useful in agent workflows to recall context from previous sessions. Requires that data has been saved via memory_save.

Did this page help you achieve your goal?