Recall memory
Changed onRecall memory using semantic similarity and spreading activation.
The types parameter is optional and may contain any of:
- world: General knowledge about people, places, events, and things that happen
- experience: Memories about experience, conversations, actions taken, and tasks performed
- observation: Consolidated knowledge synthesized from facts
If types is omitted, all fact types are recalled.
Request
- Base URLhttps://hindsight.vectorize.io (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Headers
Request body
Example request
{
"budget": "mid",
"include": {
"entities": {
"max_tokens": 500
}
},
"max_tokens": 4096,
"query": "What did Alice say about machine learning?",
"query_timestamp": "2023-05-30T23:40:00",
"tags": [
"user_a"
],
"tags_match": "any",
"temporal_window": {
"end": "2023-06-30T23:59:59Z",
"start": "2023-04-01T00:00:00Z"
},
"trace": true,
"types": [
"world",
"experience"
]
}Response
Successful Response
Example response
{
"chunks": {
"456e7890-e12b-34d5-a678-901234567890": {
"chunk_index": 0,
"id": "456e7890-e12b-34d5-a678-901234567890",
"text": "Alice works at Google on the AI team. She's been there for 3 years..."
}
},
"entities": {
"Alice": {
"canonical_name": "Alice",
"entity_id": "123e4567-e89b-12d3-a456-426614174001",
"observations": [
{
"mentioned_at": "2024-01-15T10:30:00Z",
"text": "Alice works at Google on the AI team"
}
]
}
},
"results": [
{
"chunk_id": "456e7890-e12b-34d5-a678-901234567890",
"context": "work info",
"entities": [
"Alice",
"Google"
],
"id": "123e4567-e89b-12d3-a456-426614174000",
"occurred_end": "2024-01-15T10:30:00Z",
"occurred_start": "2024-01-15T10:30:00Z",
"text": "Alice works at Google on the AI team",
"type": "world"
}
],
"trace": {
"num_results": 1,
"query": "What did Alice say about machine learning?",
"time_seconds": 0.123
}
}Changes
- info
added the new optional request property
- info
the
request property default valuefalsewas removed - info
request property
list-of-types was widened by adding typesnullto media typeapplication/json
- info
- warning
removed the optional property
//from the response with the status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
//// - info
added the new optional request property
/////// - info
added the new optional request property
////////// - info
added the new optional request property
//////////// - info
added the new optional request property
///////// - info
added the new optional request property
/////// - info
added the new optional request property
///////// - info
added the new optional request property
////// - info
added the new optional request property
- info
added the new
exactenum value to the request property//// - info
added the new
exactenum value to the request property/////// - info
added the new
exactenum value to the request property////////// - info
added the new
exactenum value to the request property//////////// - info
added the new
exactenum value to the request property///////// - info
added the new
exactenum value to the request property/////// - info
added the new
exactenum value to the request property///////// - info
added the new
exactenum value to the request property////// - info
added the new
exactenum value to the request property - info
added the optional property
///to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
to the response with the status
- warning