POST
/
knowledge_graph
/
neo4j
/
Train Neo4J Knowledge Graph
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
}

Authorizations

x-api-key
string
header
required

Query Parameters

rag_id
string
required

The ID of the RAG system to train

Body

multipart/form-data

Response

200
application/json

Knowledge graph training completed successfully

The response is of type object.