GraphRAG

Build a knowledge graph for a collection.

Triggers an asynchronous job that extracts entities and relationships from document chunks to build a knowledge graph using LightRAG. Returns 409 Conflict if a build is already in progress.

post/graph/{collection_id}/build

Request

Path parameters

collection_idstring uuid required

The collection ID to build the graph for.

Request body

force_rebuildboolean

If true, removes any existing graph and rebuilds from scratch.

namestring

Optional job name override.

Response

Graph build job created

idstring required
namestring required
overall_status'in progress' | 'completed' | 'failed' | 'canceled' required
statusstring
passed_percentagenumber double required
failed_percentagenumber double required
progressnumber double required
created_atstring date-time required
updated_atstring date-time required
kindstring required
errorsstring[] required
durationstring required
duration_secondsnumber double required
canceled_bystring
cancel_reasonstring
timeoutnumber double
start_timenumber double
files_totalinteger
files_failedinteger

Changes

No recorded changes to this operation across all 1 revision of this API.