kg-info, kg-search, and kg-walk.
Build knowledge graph
wait_seconds(optional, default 0, max 300) — A real build far outlasts any sync window; callers normally poll the returned job.
Idempotency-Key(optional)
force(optional, defaultfalse) — Clear the workspace’s graph store and rebuild from scratch. The default resumes from the durable store, reusing prior extraction and resolution work. Useforceonly when the store is suspected corrupt or the ontology’s meaning changed under a version it did not re-key.
Job with kind: "kg_build".
Result (on success):
snapshot_id— Cache key for this graph version. Changes each time the graph is rebuilt; use it to detect staleness.files_covered— Source files whose ledger version matched the build-time corpus at finalization.node_count/edge_count— Totals for the built graph.rebuilt—truewhen aforcebuild cleared the prior store first.files_failed— Files excluded after exhausting their retries. Each entry reports the sourcepath, failurephase(classifyingorextracting), and finalerror. These files are not included infiles_coveredand remain eligible for a later rebuild.
Auto-build
knowledge_graph.auto_build is off by default: a build is billable and
long-running, so ingesting files does not start one for you.
Set it to true — at creation or later via
Update workspace — for a workspace that
should hold a graph over everything it ingests. Each ingestion then chains a build
after file processing, and the ingestion job result carries kg_build_job_id
pointing at it. Nothing else changes: those builds are the same kg_build jobs,
report the same progress, and are stopped the same way with
Cancel job.
Prerequisites
- Files must be uploaded and ingested before a build covers them.
- A build is corpus-level — it reads all ingested files at once.
- Only one build can be queued at a time per workspace.
Errors
kg_build_in_progress(409) — A build is already running; wait for it to finish.workspace_deleting(409) — The workspace is being torn down.