Train Knowledge Graph From File (Async Task)
lyzr_kg_ext_train_file_taskUpload a base64-encoded file to train a Neo4j knowledge graph as an asynchronous task. Specify the RAG ID, filename, and schema to extract nodes and relationships.
Instructions
Upload a file (base64-encoded) to train the Neo4j knowledge graph as an async task.
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 |