Core Concepts
Graph Builder has a deliberately small model surface.
Input
The main input types are:
GraphBuilderTextItemfor text you already have.GraphBuilderProviderfor pulling records from another system.- A Node.js path string for local-file ingestion.
Every item should have a stable id and text body. Optional metadata like path, url, and storageRef make the resulting graph easier to query and trace back to source.
Graph
result.graph contains:
nodesfor documents, headings, chunks, symbols, tags, packages, resources, and semantic concepts.edgesfor structural and inferred relationships.hyperedgesfor higher-order semantic groupings when an enricher returns them.statsfor node, edge, source, and community counts.
Result object
result is more than raw graph data:
queryexposes search, path, neighbor, and community helpers.analysisholds god nodes, isolated nodes, confidence counts, and surprising connections.artifactsholds serialized output formats.diagnosticsrecords warnings, timings, skipped items, errors, and model usage.
Deterministic vs semantic stages
The default pipeline is deterministic. Graph Builder parses markdown and code, normalizes nodes and edges, and analyzes the graph. If you supply semantic.enricher, the semantic fragment is merged after deterministic extraction.

