Files
myWiki/concepts/graphrag.md

36 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "GraphRAG知识图谱增强检索"
created: 2026-06-29
updated: 2026-06-29
type: concept
tags: [context-engineering, retrieval, knowledge-graph, RAG]
sources: [[prompt-to-loop-engineering-2026]]
confidence: high
---
# GraphRAG
> [[context-engineering|Context Engineering]] 的核心方法论之一:用实体关系网络取代传统向量相似度,将"段落检索"升级为"语义关联"。
## 与传统 RAG 的区别
| 维度 | 传统 RAG | GraphRAG |
|------|---------|----------|
| 检索单元 | 文本段落 | 实体 + 关系 |
| 相似度 | 向量余弦 | 图结构(实体关系网络) |
| 多跳推理 | 差 | 天然支持 |
| 可解释性 | 低("相似"无法解释) | 高(可追踪推理路径) |
| 合规审计 | 困难 | 可溯源 |
## 解决的核心问题
- **多跳推理**:需要跨多篇文档组合信息的问题
- **可解释性**:回答"为什么给我这个结果"
- **合规审计**:需要溯源的领域(法律、金融)
## 相关概念
- [[context-engineering|Context Engineering]]
- [[minimum-viable-context|MVC]]
- [[just-in-time-retrieval|JIT 检索]]