Preview Memory Kg Extraction
Preview knowledge graph extraction for a memory.
This endpoint extracts entities and relationships from a memory's content using the local LLM, providing a preview without saving to the database.
Path Parameters
memory_idstring
force_reextraction?boolean
Force re-extraction even if KG was already extracted
Default
falseextraction_level?string
Extraction level: 'swift' (fast) or 'guided' (multi-step)
Default
"swift"Response Body
application/json
application/json
curl -X POST "http://127.0.0.1:14242/memories/string/extract-kg/preview" \ -H "Content-Type: application/json" \ -d '{}'{
"memory_id": "string",
"memory_title": "string",
"memory_content": "string",
"entities": [
{}
],
"relationships": [
{}
],
"extraction_confidence": 0,
"entities_count": 0,
"relationships_count": 0,
"kg_already_extracted": true,
"can_extract": true
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}