Search memories
const url = 'http://localhost:11044/api/v1/chat/memory/search';const options = { method: 'POST', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>', 'Content-Type': 'application/json'}, body: '{"minConfidence":"0.5","query":"example","topK":"20"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:11044/api/v1/chat/memory/search \ --header 'Content-Type: application/json' \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>' \ --data '{ "minConfidence": "0.5", "query": "example", "topK": "20" }'Search the user’s memories by text similarity, scoped to ACTIVE propositions in the current context. The JSON body requires query; topK defaults to 20 (clamped to 1..30) and minConfidence to 0.5 (clamped to 0..1).
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”What to look for among the caller’s memories. query is required and must be a string; missing or any other JSON type is refused with 400. topK caps how many come back, default 20, clamped to 1..30; minConfidence is the lowest similarity score returned, default 0.5, clamped to 0..1. Only ACTIVE memories in the caller’s current context are searched
A memory search
object
Minimum similarity to include, 0..1
The text to match against the user’s memories
How many results to return; clamped to 1..30
Responses
Section titled “Responses”Search results
object
Missing query
A refusal carrying only its reason, with no status word
object
Why the request was refused, written to be shown

