Train Knowledge Graph from Text
lyzr_kg_train_textIngest text into a v4 knowledge graph to train it with new information. Provide source, knowledge base ID, and optional metadata for structured updates.
Instructions
Ingest text into the v4 knowledge graph.
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"
}
}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 |