Skip to content

Lexical Graph with Sibling Structure

Context

It is useful to keep track of adjacent chunks for a possible retrieval of them. This pattern is an evolution of the Lexical Graph

Graph Pattern

Graph

Elements

Nodes

Document Node Document nodes contain the document name and its source. They may contain additional metadata. Chunk Node Chunk nodes contain the human readable text of a chunk and its vector embedding. They may contain additional metadata.

Relationships

PART_OF Relationship The PART_OF relationships do not require additional properties. However, they may contain additional metadata.

FIRST_CHUNK Relationship The FIRST_CHUNK relationships do not require additional properties. However, they may contain additional metadata.

NEXT_CHUNK Relationship The NEXT_CHUNK relationships do not require additional properties. However, they may contain additional metadata.

Description

When chunking documents, record the adjacency relationships between the chunks.

GraphRAG Pattern