Distill Memories From Thread
Create memories from thread content after distillation.
This endpoint actually creates memories in the database based on the distillation type. For knowledge graph mode, it includes entity and relationship metadata.
thread_idstring
Source thread ID
thread_title?string|null
thread_contentstring
Full thread content to distill
distillation_type?string
Type: 'simple_llm' or 'knowledge_graph'
Default
"simple_llm"extraction_level?string
Extraction level: 'swift' (fast) or 'guided' (multi-step)
Default
"swift"cache_key?string|null
selected_message_indices?|null
Response Body
application/json
application/json
curl -X POST "http://127.0.0.1:14242/memories/distill" \ -H "Content-Type: application/json" \ -d '{ "thread_id": "string", "thread_content": "string" }'{
"memory": {
"id": "string",
"node_type": "Thread",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"metadata": {},
"content": "string",
"title": "string",
"importance": 0.5,
"confidence": 0.5,
"embedding": [
0
],
"source_range": {
"property1": 0,
"property2": 0
},
"source": "string",
"semantic_field": "string",
"reindex_needed": false,
"last_reindexed_at": "2019-08-24T14:15:22Z"
},
"extracted_entities": [
{
"id": "string",
"node_type": "Thread",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"metadata": {},
"name": "string",
"entity_type": "string",
"description": "string",
"aliases": [
"string"
],
"confidence": 0.5
}
],
"assigned_labels": [
"string"
],
"created_relationships": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}