Train Knowledge Graph From File
lyzr_kg_ext_train_fileUpload a base64-encoded file to train a Neo4j knowledge graph. Provide the RAG ID, filename, and schema prompt to define allowed nodes and relationships.
Instructions
Upload a file (base64-encoded) to train the Neo4j 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": {
"rag_id": "<rag_id>",
"file_content_base64": "<file_content_base64>",
"filename": "<filename>"
},
"name": "lyzr_kg_ext_train_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rag_id | Yes | The ID of the RAG system to train | |
| filename | Yes | Filename to associate with the upload | |
| mime_type | No | MIME type of the file (optional) | |
| extra_info | No | Extra info as a JSON string (default "{}") | |
| schema_prompt | No | Allowed nodes and relationships for the knowledge graph | |
| file_content_base64 | Yes | Base64-encoded content of the file to train on |