Unified Contextual Memory Search (Text + Multimodal)
Retrieves relevant memories based on text conversation context and/or multimodal inputs.
You can provide **text messages**, **images**, **video**, **audio**, or any combination.
The system finds memories semantically relevant to the provided inputs.
**Universal Base Params:**
- user_id (str, required): Restrict search to this user
- project_id (str, required): Restrict search to this project
- persona_id (str, optional): Use persona's context if provided
**Input — at least one required:**
- messages (array, optional): Text conversation context
- video_base64 (str, optional): Base64 encoded video
- image_base64 (str, optional): Base64 encoded image
- audio_base64 (str, optional): Base64 encoded audio
**Search Config:**
- include_modalities (array, optional): Filter results by type: ["text", "image", "video"]
**Response:**
- new_prompt (str): Enhanced prompt with retrieved memory context
- raw_results (dict): Structured memory data from retrieval
- entity_images (dict, optional): Reference images for matched entities
- success (bool): True if query succeeded
Returns 200 OK with memory data. Requires authentication.
Request body
Example request
{
"include_modalities": [
"text",
"video"
],
"messages": [
{
"content": "What did we decide about the animation speed last time?",
"role": "user"
}
],
"project_id": "proj_ABC",
"user_id": "user_123"
}Response
Successful Response
Example response
{
"new_prompt": "User preferences: likes morning coffee...",
"raw_results": {
"episodic": [],
"identity": [],
"preferences": []
},
"success": true
}Changes
Changed in 6 of the 29 revisions of this API.2222
- ▲
the response property
raw_resultsbecame optional for the status200response-property-became-optional
- ●
removed the request property
filter_memory_typesrequest-property-removed
- ●
removed the request property
questionrequest-property-removed
- ○
api tag
v1 modalsaddedapi-tag-added
- ○
api tag
v1 modalremovedapi-tag-removed
- ○
added the new optional request property
audio_base64new-optional-request-property
- ○
added the new optional request property
image_base64new-optional-request-property
- ○
added the new optional request property
include_modalitiesnew-optional-request-property
- ○
added the new optional request property
text_inputnew-optional-request-property
- ○
added the new optional request property
video_base64new-optional-request-property
- ○
added the optional property
entity_imagesto the response with the200statusresponse-optional-property-added
This revision also has 20 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the new optional request property
persona_idnew-optional-request-property
- ○
added the new optional request property
project_idnew-optional-request-property
- ○
- ○
added the non-success response with the status
404response-non-success-status-added
- ○
added the optional property
detailsto the response with the400statusresponse-optional-property-added
- ○
added the optional property
detailsto the response with the401statusresponse-optional-property-added
- ○
added the optional property
detailsto the response with the500statusresponse-optional-property-added
- ○
added the optional property
request_idto the response with the400statusresponse-optional-property-added
- ○
added the optional property
request_idto the response with the401statusresponse-optional-property-added
- ○
added the optional property
request_idto the response with the500statusresponse-optional-property-added
- ○
added the required property
error_codeto the response with the400statusresponse-required-property-added
- ○
added the required property
error_codeto the response with the401statusresponse-required-property-added
- ○
added the required property
error_codeto the response with the500statusresponse-required-property-added
This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
endpoint added
endpoint-added
This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
This revision also has 16 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○