liveBook · Manning

Combined retrieval

As explained in Knowledge Graphs and LLMs in Action

A retrieval technique that combines knowledge-graph context with document context obtained from multiple data sources.

Combined retrieval handles questions that span multiple data sources by using a knowledge graph to resolve entities or relationships, then using that context to retrieve relevant documents. The knowledge-graph and document contexts are merged before answer generation. section 13.4.3

A practical retrieval pipeline can proceed as follows:

  • Split the question into a knowledge-graph retrieval task and a document-retrieval task. section 13.4.3
  • Use graph entities or relationships to constrain document selection, reducing failures from missing titles and irrelevant semantic matches. section 13.4.3
  • Merge graph and document contexts, with semantic vector search available as a backup when the other retrievers return insufficient context. section 13.4.3

Cross-source identity resolution

For “What are this year’s transactions of the head of criminal group X?”, the knowledge graph identifies the person holding that relationship, and the financial-document search uses the person’s name to retrieve supporting records. section 13.4.3

Figure 13.4 KG-powered RAG agent with a grounding in external data sources: the KG and a vector database
figure

The architecture shows a grounded RAG agent combining a knowledge graph with a vector database as external data sources. section 13.4.3

How Knowledge Graphs and LLMs in Action covers it

How deep it goes
Explains decomposition, graph-guided document selection, context merging, and semantic fallback without detailing final answer generation.
Examples
Uses a criminal-group transaction question and a relation-focused document retriever for questions about what one person said about another.
What it assumes
Assumes access to a knowledge graph and document source while demonstrating how graph entities guide document search.
What you can do after
Build an agent that resolves graph context, selects supporting documents, and combines both contexts for grounded generation.
How it connects
Connects knowledge graphs, document retrieval, vector search, Graph RAG, and AI agents.

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.