liveBook · Manning

Text-paired graph

As explained in Knowledge Graphs and LLMs in Action

A text-paired graph is a graph associated with documents or other textual resources and their metadata.

A text-paired graph associates its nodes, relationships, and graph structures with the documents from which they descend. This preserves links between extracted knowledge and supporting textual evidence. section 13.4.3

A text-paired graph supports retrieval by combining:

  • Document metadata such as publication date, type, source, and author, represented as properties or relationships. section 13.4.3
  • Structured entity and relationship patterns that select documents mentioning required entities and connect them through graph paths. section 13.4.3
  • Traceability from extracted entities and relationships back to original documents, improving grounding and transparency for generated answers. section 13.4.3 section 13.5

Archive retrieval

The Rockefeller Archive Center KG represents documents as nodes with author, type, and date properties, while extracted entities and relationships remain traceable to those documents. A Graph RAG agent can use this structure to select relevant evidence. section 13.4.3

Figure 13.3 The Rockefeller Archive Center KG combines a text-attributed graph and a text-paired graph. Documents are represented as nodes, each with properties representing metadata such as author, type of document, and date. The extracted entities and relationships are traceable back to the original documents, which enables us to design a KG-based document selection tool for AI agents.
figure

Inspect the architecture linking document nodes, metadata, extracted entities, relationships, and AI-agent document selection. section 13.4.3

How Knowledge Graphs and LLMs in Action covers it

How deep it goes
Defines document association and retrieval applications, but does not detail graph construction or extraction internals.
Examples
Uses the Rockefeller Archive Center KG, document nodes, metadata properties, extracted entities, and traceable relationships.
What it assumes
Assumes familiarity with knowledge graphs, documents, metadata, entities, relationships, and retrieval-augmented generation.
What you can do after
Apply it via Graph RAG to retrieve documents matching queried entities and provide traceable evidence for generated responses.
How it connects
Connects knowledge graphs, text-attributed graphs, Graph RAG, metadata, entity relationships, and vector search.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Knowledge Graphs and LLMs in Action. The section links point to the parts of the book it draws on.