liveBook · Manning

Parent document

As explained in Essential GraphRAG

A parent document is a document segment that contains smaller child documents and provides a larger context unit for retrieval.

A parent document is a larger text segment that contains smaller child documents. It preserves retrieval context while allowing embeddings to target precise child chunks. section 3.2

Build the structure as a staged retrieval pipeline:

  • Split source text at structural boundaries such as numbered sections, then divide sections into parent chunks of up to 2,000 characters. section 3.2
  • Split each parent into 500-character children, embed the children, and connect PDF, parent, and child nodes with graph relationships. section 3.2
  • Search child embeddings, group matches by parent, retain each parent’s strongest score, and return the final k unique parents. section 3.2.1
Figure 3.4 Parent document graph representation
figure

Use the graph representation to inspect how a PDF connects to parent nodes and their embedded child chunks. section 3.2

How Essential GraphRAG covers it

How deep it goes
Explains structural splitting, chunk sizes, graph storage, indexing, child search, deduplication, and final ranking.
Examples
Uses a research-paper PDF, numbered-section splitting, 2,000-character parents, 500-character children, and Neo4j graph queries.
What you can do after
Build it from scratch with Python, embeddings, Cypher, Neo4j, and a child-node vector index.
How it connects
Connects document chunking, embeddings, vector search, graph databases, and child documents through parent-child relationships.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Essential GraphRAG. The section links point to the parts of the book it draws on.