GraphRAG
An approach extending RAG: in addition to searching through text chunks, a knowledge graph is built from entities and relationships, and the answer is assembled based on the graph structure.
What Sets It Apart from Regular RAG
| RAG | GraphRAG | |
|---|---|---|
| Search Unit | Text chunk | Entity and its relationships |
| Good For | Facts from documents | Questions about structure and relationships |
| Example | «What is written in the doc?» | «How are server A and service B related?» |
When to Use
- Infrastructure: which server is responsible for what;
- Questions «how are A and B related»;
- Agents’ long-term memory.