Recall Semantic Memory
/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 Constraints: 1–500 characters |
koptional | integer | Max results to return Default: Constraints: 1–50 |
memory_typeoptional | string | Filter by memory type |
sourceoptional | string | Filter by source |
Example request
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 | Matching documents before any grouping, as OpenSearch counts them (it stops counting at 10,000). Not the number of distinct results a grouped search can page through. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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: 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 |