Subgraph
A small graph of entities and relationships extracted from a single text chunk, later merged with others into the full knowledge graph.
As defined in Knowledge Graph or Vector Database… Which is Better?
Where it comes up · 1
Most important claims · 3 of 3Search all claims for “Subgraph” →
- GraphRAG uses a lengthy prompt with examples to make the LLM identify all entities (name, type, description) from given entity types, then identify pairs of related source/target entities with a relationship description and an integer strength score from 1 to 10, which is later used when merging the subgraphs.Knowledge Graph or Vector Database… Which is Better?
- GraphRAG's indexing data flow loads and splits text into chunks, extracts entities and relationships with an LLM per chunk, merges and summarizes the per-chunk subgraphs, creates embeddings for the nodes, performs community detection, and then generates Community Reports (summaries of information within communities) which are also embedded.Knowledge Graph or Vector Database… Which is Better?
- When merging per-chunk subgraphs, entities with the same name and type are merged by combining their descriptions into an array, relationships with the same source and target are likewise merged into an array, and then these arrays are summarized one final time by an LLM into a single explanation given all context across chunks.Knowledge Graph or Vector Database… Which is Better?