POST
/
knowledge_graph
/
neo4j
/
website
/
Train Neo4J Website
curl --request POST \
  --url https://rag-prod.studio.lyzr.ai/v4/knowledge_graph/neo4j/website/ \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "urls": [
    "https://example.com"
  ],
  "source": "website",
  "max_crawl_pages": 1,
  "max_crawl_depth": 0,
  "dynamic_content_wait_secs": 5,
  "actor": "apify/website-content-crawler",
  "crawler_type": "cheerio"
}'
{
  "message": "Website training complete",
  "rag_id": "6848ff3c4c291b4bef798e0c",
  "pages_trained": 12
}

Authorizations

x-api-key
string
header
required

Query Parameters

rag_id
string
required

The ID of the RAG system to train

Body

application/json

Response

200
application/json

Website successfully crawled and knowledge graph trained

The response is of type object.