cURL
curl --request POST \ --url https://rag-prod.studio.lyzr.ai/v4/knowledge_graph/neo4j/ \ --header 'Content-Type: multipart/form-data' \ --header 'x-api-key: <api-key>' \ --form 'schema_prompt=<string>' \ --form 'extra_info=<string>' \ --form file=@example-file
{ "message": "Knowledge Graph trained successfully using Neo4J.", "rag_id": "6848ff3c4c291b4bef798e0c", "nodes_created": 142, "relationships_created": 315 }
Upload a PDF or document file and define the schema prompt to train a knowledge graph in a Neo4J database.
The ID of the RAG system to train
The document file (PDF or DOCX) to upload
Allowed nodes and relationships for the knowledge graph
Optional metadata or config in JSON string format
Knowledge graph training completed successfully
"Knowledge Graph trained successfully using Neo4J."
"6848ff3c4c291b4bef798e0c"
142
315