Train Knowledge Graph from Text (Async)
lyzr_kg_train_text_taskIngest text into a knowledge graph asynchronously, returns a task ID to poll for completion.
Instructions
Ingest text into the v4 knowledge graph as an async task; returns a task id to poll.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>",
"source": "<source>",
"rag_id": "<rag_id>"
},
"name": "lyzr_kg_train_text_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to ingest | |
| rag_id | Yes | Knowledge base id | |
| source | Yes | Source label | |
| extra_info | No | Extra metadata for the text | |
| extra_fields | No | Additional body fields merged into the request | |
| schema_prompt | No | Prompt guiding graph schema extraction |