File:GraphRAG.svg

Original file (SVG file, nominally 3,769 × 1,864 pixels, file size: 86 KB)

Summary

Description
English: Diagram illustrating the two principle phases of GraphRAG with a knowledge graph with selectable access patterns for unstructured, structured and mixed data.
   Indexing Phase, knowledge graph construction:
       a) Documents (unstructured data) are transformed into a lexical graph with hiearchical levels of detail and cross-document topical summarization. Each level includes a vector representation of the text. Named entity recognition is performed to extract structured data from the text, which is optionally attached to an in-graph schema. Finally, text representations are cross-linked and may be enriched with graph analysis like a centrality score.
       b) Structured data is imported as a domain graph using primitive data types recorded in nodes and relationships. 
       c) Connections are made between the structured and unstructured data.
   Inference Phase, GraphRAG access patterns:
       A vector embedding is calculated for the user question.
       Rule-based or agent-based tool selection determines the access pattern to use:
       a) Search - text from the lexical graph is searched using keyword, full-text, or vector similarity search
       b) Search   pattern match - following a search, graph pattern matching is used to expand the context of the text with structured data that can also be used for post-filtering
       c) Query - the user question is used to generated a database query, which is validated and executed to retrieve relevant information 
       Together, the combined text and data added to the prompt as context for the original user question.
       The LLM then generates the final answer.
This process ensures efficient and relevant document retrieval based on the semantic content of queries.
Date
Source Own work
Author Akollegger

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution
This file is licensed under the Creative Commons Attribution 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.

Captions

GraphRAG with a knowledge graph combines access patterns for unstructured, structured and mixed data.

1 July 2024

image/svg xml

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current15:57, 1 July 2024Thumbnail for version as of 15:57, 1 July 20243,769 × 1,864 (86 KB)AkolleggerUploaded own work with UploadWizard

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata