Recall Semantic Memory
post
/v1/graphs/{graph_id}/memory/recallPart of Memory.
Ranked semantic recall over the graph's per-graph memory store. Returns scored hits in the same shape as document search.
Authentication
Authenticate in any one of these ways — not all of them:
- API key in the
X-API-Keyheader. - Bearer token in the
Authorizationheader.
Path parameters
| Name | Type | Description |
|---|---|---|
graph_idrequired | string | Graph Id |
Request body
Required, application/json.
| Field | Type | Description |
|---|---|---|
queryrequired | string | Recall query |
koptional | integer | Max results to return Default: |
memory_typeoptional | string | Filter by memory type |
sourceoptional | string | Filter by source |
Example request
curl
curl -X POST "https://api.robosystems.ai/v1/graphs/{graph_id}/memory/recall" \
-H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "string"
}'Responses
200 Successful Response
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
totalrequired | integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
hitsrequired | SearchHit[] | A single search result with snippet. A long SEC section (an MD&A, a commitments note) is indexed in parts, each a document of its own: ``part`` of ``part_count``, ``parent_document_id`` shared by the section's parts, ``next_document_id`` to read on. SearchHit fields
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
queryrequired | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
graph_idrequired | string |
| Status | Meaning |
|---|---|
| 400 | Invalid request |
| 401 | Authentication required |
| 403 | Access denied |
| 404 | Resource not found |
| 422 | Validation Error |
| 429 | Rate limit exceeded |
| 500 | Internal server error |
| 503 | Semantic memory not available |