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>'
{ "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
Knowledge graph training completed successfully
The response is of type object.
object