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
urls
string[]
required

List of website URLs to crawl

Example:
["https://example.com"]
source
string
required

Data source identifier

Example:

"website"

max_crawl_pages
integer
required

Maximum number of pages to crawl

Example:

1

max_crawl_depth
integer
required

Maximum crawl depth

Example:

0

dynamic_content_wait_secs
integer
required

Time to wait for dynamic content to load (in seconds)

Example:

5

actor
string
required

Apify actor used for crawling

Example:

"apify/website-content-crawler"

crawler_type
string
required

Type of crawler used

Example:

"cheerio"

Response

Website successfully crawled and knowledge graph trained

message
string
Example:

"Website training complete"

rag_id
string
Example:

"6848ff3c4c291b4bef798e0c"

pages_trained
integer
Example:

12