Recall memories semantically or by neighborhood walk.
curl --request POST \
--url https://api.reload.chat/v1/sdk/recall \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"seed_id": "<string>",
"depth": 2,
"scope_id": "<string>",
"expand": [
"provenance",
"related"
],
"filters": {
"include_superseded": false,
"include_invalidated": false,
"include_expired": false,
"min_confidence": 0.5,
"min_similarity": 0.5
},
"metadata_filter": {},
"limit": 20
}
'import requests
url = "https://api.reload.chat/v1/sdk/recall"
payload = {
"query": "<string>",
"seed_id": "<string>",
"depth": 2,
"scope_id": "<string>",
"expand": ["provenance", "related"],
"filters": {
"include_superseded": False,
"include_invalidated": False,
"include_expired": False,
"min_confidence": 0.5,
"min_similarity": 0.5
},
"metadata_filter": {},
"limit": 20
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: '<string>',
seed_id: '<string>',
depth: 2,
scope_id: '<string>',
expand: ['provenance', 'related'],
filters: {
include_superseded: false,
include_invalidated: false,
include_expired: false,
min_confidence: 0.5,
min_similarity: 0.5
},
metadata_filter: {},
limit: 20
})
};
fetch('https://api.reload.chat/v1/sdk/recall', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.reload.chat/v1/sdk/recall",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => '<string>',
'seed_id' => '<string>',
'depth' => 2,
'scope_id' => '<string>',
'expand' => [
'provenance',
'related'
],
'filters' => [
'include_superseded' => false,
'include_invalidated' => false,
'include_expired' => false,
'min_confidence' => 0.5,
'min_similarity' => 0.5
],
'metadata_filter' => [
],
'limit' => 20
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.reload.chat/v1/sdk/recall"
payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"seed_id\": \"<string>\",\n \"depth\": 2,\n \"scope_id\": \"<string>\",\n \"expand\": [\n \"provenance\",\n \"related\"\n ],\n \"filters\": {\n \"include_superseded\": false,\n \"include_invalidated\": false,\n \"include_expired\": false,\n \"min_confidence\": 0.5,\n \"min_similarity\": 0.5\n },\n \"metadata_filter\": {},\n \"limit\": 20\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.reload.chat/v1/sdk/recall")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"seed_id\": \"<string>\",\n \"depth\": 2,\n \"scope_id\": \"<string>\",\n \"expand\": [\n \"provenance\",\n \"related\"\n ],\n \"filters\": {\n \"include_superseded\": false,\n \"include_invalidated\": false,\n \"include_expired\": false,\n \"min_confidence\": 0.5,\n \"min_similarity\": 0.5\n },\n \"metadata_filter\": {},\n \"limit\": 20\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reload.chat/v1/sdk/recall")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"<string>\",\n \"seed_id\": \"<string>\",\n \"depth\": 2,\n \"scope_id\": \"<string>\",\n \"expand\": [\n \"provenance\",\n \"related\"\n ],\n \"filters\": {\n \"include_superseded\": false,\n \"include_invalidated\": false,\n \"include_expired\": false,\n \"min_confidence\": 0.5,\n \"min_similarity\": 0.5\n },\n \"metadata_filter\": {},\n \"limit\": 20\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"hits": [
{
"id": "<string>",
"org_id": "<string>",
"content": "<string>",
"confidence": 123,
"version": 123,
"ttl_seconds": 123,
"created_at": "2023-11-07T05:31:56Z",
"last_reinforced_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"invalidated_at": "2023-11-07T05:31:56Z",
"invalidated_by": "<string>",
"invalidated_reason": "<string>",
"content_hash": "<string>",
"metadata": {}
}
],
"edges": [
{
"id": "<string>",
"from_id": "<string>",
"from_type": "<string>",
"to_id": "<string>",
"to_type": "<string>",
"properties": {},
"created_at": "2023-11-07T05:31:56Z"
}
],
"scores": [
{
"memory_id": "<string>",
"total": 123,
"similarity": 123,
"confidence_bonus": 123,
"recency_penalty": 123,
"supersession_penalty": 123
}
],
"messages": [
{
"id": "<string>",
"channel_id": "<string>",
"thread_id": "<string>",
"author_identity_id": "<string>",
"kind": "<string>",
"content": "<string>",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"version": 123
}
]
},
"meta": {
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123,
"historyCutoff": {
"beyondCount": 123,
"cutoffAt": "2023-11-07T05:31:56Z"
}
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryable": true,
"suggestion": "<string>",
"docs": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123,
"historyCutoff": {
"beyondCount": 123,
"cutoffAt": "2023-11-07T05:31:56Z"
}
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryable": true,
"suggestion": "<string>",
"docs": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123,
"historyCutoff": {
"beyondCount": 123,
"cutoffAt": "2023-11-07T05:31:56Z"
}
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryable": true,
"suggestion": "<string>",
"docs": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123,
"historyCutoff": {
"beyondCount": 123,
"cutoffAt": "2023-11-07T05:31:56Z"
}
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryable": true,
"suggestion": "<string>",
"docs": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123,
"historyCutoff": {
"beyondCount": 123,
"cutoffAt": "2023-11-07T05:31:56Z"
}
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryable": true,
"suggestion": "<string>",
"docs": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123,
"historyCutoff": {
"beyondCount": 123,
"cutoffAt": "2023-11-07T05:31:56Z"
}
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryable": true,
"suggestion": "<string>",
"docs": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123,
"historyCutoff": {
"beyondCount": 123,
"cutoffAt": "2023-11-07T05:31:56Z"
}
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryable": true,
"suggestion": "<string>",
"docs": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123,
"historyCutoff": {
"beyondCount": 123,
"cutoffAt": "2023-11-07T05:31:56Z"
}
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryable": true,
"suggestion": "<string>",
"docs": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123,
"historyCutoff": {
"beyondCount": 123,
"cutoffAt": "2023-11-07T05:31:56Z"
}
}
}
}Recall memories semantically or by neighborhood walk.
Retrieve a ranked subgraph. Provide exactly one of query (semantic ANN) or seed_id (BFS neighborhood walk). Returns flat hits, the edges linking them, ranking scores, and provenance messages.
POST
/
v1
/
sdk
/
recall
Recall memories semantically or by neighborhood walk.
curl --request POST \
--url https://api.reload.chat/v1/sdk/recall \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"seed_id": "<string>",
"depth": 2,
"scope_id": "<string>",
"expand": [
"provenance",
"related"
],
"filters": {
"include_superseded": false,
"include_invalidated": false,
"include_expired": false,
"min_confidence": 0.5,
"min_similarity": 0.5
},
"metadata_filter": {},
"limit": 20
}
'import requests
url = "https://api.reload.chat/v1/sdk/recall"
payload = {
"query": "<string>",
"seed_id": "<string>",
"depth": 2,
"scope_id": "<string>",
"expand": ["provenance", "related"],
"filters": {
"include_superseded": False,
"include_invalidated": False,
"include_expired": False,
"min_confidence": 0.5,
"min_similarity": 0.5
},
"metadata_filter": {},
"limit": 20
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: '<string>',
seed_id: '<string>',
depth: 2,
scope_id: '<string>',
expand: ['provenance', 'related'],
filters: {
include_superseded: false,
include_invalidated: false,
include_expired: false,
min_confidence: 0.5,
min_similarity: 0.5
},
metadata_filter: {},
limit: 20
})
};
fetch('https://api.reload.chat/v1/sdk/recall', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.reload.chat/v1/sdk/recall",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => '<string>',
'seed_id' => '<string>',
'depth' => 2,
'scope_id' => '<string>',
'expand' => [
'provenance',
'related'
],
'filters' => [
'include_superseded' => false,
'include_invalidated' => false,
'include_expired' => false,
'min_confidence' => 0.5,
'min_similarity' => 0.5
],
'metadata_filter' => [
],
'limit' => 20
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.reload.chat/v1/sdk/recall"
payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"seed_id\": \"<string>\",\n \"depth\": 2,\n \"scope_id\": \"<string>\",\n \"expand\": [\n \"provenance\",\n \"related\"\n ],\n \"filters\": {\n \"include_superseded\": false,\n \"include_invalidated\": false,\n \"include_expired\": false,\n \"min_confidence\": 0.5,\n \"min_similarity\": 0.5\n },\n \"metadata_filter\": {},\n \"limit\": 20\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.reload.chat/v1/sdk/recall")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"seed_id\": \"<string>\",\n \"depth\": 2,\n \"scope_id\": \"<string>\",\n \"expand\": [\n \"provenance\",\n \"related\"\n ],\n \"filters\": {\n \"include_superseded\": false,\n \"include_invalidated\": false,\n \"include_expired\": false,\n \"min_confidence\": 0.5,\n \"min_similarity\": 0.5\n },\n \"metadata_filter\": {},\n \"limit\": 20\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reload.chat/v1/sdk/recall")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"<string>\",\n \"seed_id\": \"<string>\",\n \"depth\": 2,\n \"scope_id\": \"<string>\",\n \"expand\": [\n \"provenance\",\n \"related\"\n ],\n \"filters\": {\n \"include_superseded\": false,\n \"include_invalidated\": false,\n \"include_expired\": false,\n \"min_confidence\": 0.5,\n \"min_similarity\": 0.5\n },\n \"metadata_filter\": {},\n \"limit\": 20\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"hits": [
{
"id": "<string>",
"org_id": "<string>",
"content": "<string>",
"confidence": 123,
"version": 123,
"ttl_seconds": 123,
"created_at": "2023-11-07T05:31:56Z",
"last_reinforced_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"invalidated_at": "2023-11-07T05:31:56Z",
"invalidated_by": "<string>",
"invalidated_reason": "<string>",
"content_hash": "<string>",
"metadata": {}
}
],
"edges": [
{
"id": "<string>",
"from_id": "<string>",
"from_type": "<string>",
"to_id": "<string>",
"to_type": "<string>",
"properties": {},
"created_at": "2023-11-07T05:31:56Z"
}
],
"scores": [
{
"memory_id": "<string>",
"total": 123,
"similarity": 123,
"confidence_bonus": 123,
"recency_penalty": 123,
"supersession_penalty": 123
}
],
"messages": [
{
"id": "<string>",
"channel_id": "<string>",
"thread_id": "<string>",
"author_identity_id": "<string>",
"kind": "<string>",
"content": "<string>",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"version": 123
}
]
},
"meta": {
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123,
"historyCutoff": {
"beyondCount": 123,
"cutoffAt": "2023-11-07T05:31:56Z"
}
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryable": true,
"suggestion": "<string>",
"docs": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123,
"historyCutoff": {
"beyondCount": 123,
"cutoffAt": "2023-11-07T05:31:56Z"
}
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryable": true,
"suggestion": "<string>",
"docs": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123,
"historyCutoff": {
"beyondCount": 123,
"cutoffAt": "2023-11-07T05:31:56Z"
}
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryable": true,
"suggestion": "<string>",
"docs": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123,
"historyCutoff": {
"beyondCount": 123,
"cutoffAt": "2023-11-07T05:31:56Z"
}
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryable": true,
"suggestion": "<string>",
"docs": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123,
"historyCutoff": {
"beyondCount": 123,
"cutoffAt": "2023-11-07T05:31:56Z"
}
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryable": true,
"suggestion": "<string>",
"docs": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123,
"historyCutoff": {
"beyondCount": 123,
"cutoffAt": "2023-11-07T05:31:56Z"
}
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryable": true,
"suggestion": "<string>",
"docs": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123,
"historyCutoff": {
"beyondCount": 123,
"cutoffAt": "2023-11-07T05:31:56Z"
}
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryable": true,
"suggestion": "<string>",
"docs": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123,
"historyCutoff": {
"beyondCount": 123,
"cutoffAt": "2023-11-07T05:31:56Z"
}
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryable": true,
"suggestion": "<string>",
"docs": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123,
"historyCutoff": {
"beyondCount": 123,
"cutoffAt": "2023-11-07T05:31:56Z"
}
}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Semantic query. Provide exactly one of query or seed_id.
Neighborhood-walk seed. Provide exactly one of query or seed_id.
BFS walk depth (with seed_id).
Required range:
1 <= x <= 3Edge-expansion mode for recall.
Available options:
provenance, related Show child attributes
Show child attributes
Required range:
1 <= x <= 100⌘I

