Element extraction converts text chunks into structured entities and relationships for graph construction. An LLM identifies people, places, concepts, and their connections, producing subject–predicate–object triplets. section 12.1.1
A practical extraction pipeline:
- Split source documents into manageable text windows. section 12.1.1
- Prompt an LLM to extract entities, relationships, and structured triplets from each chunk. section 12.1.1
- Preserve character offsets so extracted claims remain grounded and citable. section 12.1.1
- Load the triplets into a graph library or database such as NetworkX, igraph, Neo4j, ArangoDB, or TigerGraph. section 12.1.1
Figure 12.2 The same corpus and the same query, run through both workflows.

Compare how the same corpus and query flow through chunk retrieval versus connected-subgraph retrieval. section 12.1.1
