Preview Distillation
Preview distillation results without creating memories in the database.
This endpoint processes content and returns distilled data for user review before they decide to save the memories. Returns a cache_key that can be used to reuse these results in the actual distillation call.
Supports two modes:
- Simple LLM summarization - just extract key memories
- Knowledge graph extraction - extract entities, relationships, and memories
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/preview" \ -H "Content-Type: application/json" \ -d '{ "thread_id": "string", "thread_content": "string" }'{
"success": true,
"cache_key": "string",
"distillation_type": "string",
"processing_time": 0,
"memories": [
{}
],
"entities": [
{}
],
"relationships": [
{}
],
"insights": [
{}
],
"summary": "string",
"error": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}