arXiv:2507.03226cs.AI2025-07被引 8

用解析技术低成本构建知识图谱,实现企业级高效问答。

Towards Practical GraphRAG: Efficient Knowledge Graph Construction and Hybrid Retrieval at Scale

  • 用依存句法分析替代大模型抽取,成本更低但性能接近
  • 混合检索融合向量匹配与图遍历,最高提升15%准确率
  • 适合需要低成本、可扩展的工业级知识问答系统

我们提出一种可扩展且成本低廉的GraphRAG部署框架,适用于企业环境。尽管GraphRAG在多跳推理和结构化检索方面表现良好,但其应用受限于依赖昂贵的大语言模型(LLM)进行信息抽取及复杂的图遍历策略。为此,我们引入两项核心创新:(1) 采用依存句法分析的高效知识图谱构建流程,在保持94% LLM方法性能(61.87% vs. 65.83%)的同时显著降低开销并提升可扩展性;(2) 采用基于互斥排名融合(RRF)的混合检索策略,分别维护实体、文本块和关系的独立嵌入,实现多粒度匹配。我们在两个面向遗留代码迁移的企业数据集上评估该框架,使用LLM作为评判者的方法,相较纯向量检索基线分别提升最高达15%和4.35%。结果验证了在生产环境中部署GraphRAG的可行性,表明通过精心设计传统NLP技术可媲美现代大模型方法,同时支持实际、低成本、可领域适配的大规模检索增强推理。

原文摘要 · Abstract (English)

We propose a scalable and cost-efficient framework for deploying Graph-based Retrieval-Augmented Generation (GraphRAG) in enterprise environments. While GraphRAG has shown promise for multi- hop reasoning and structured retrieval, its adoption has been limited due to reliance on expensive large language model (LLM)-based extraction and complex traversal strategies. To address these challenges, we introduce two core innovations: (1) an efficient knowledge graph construction pipeline that leverages dependency parsing to achieve 94% of LLM-based performance (61.87% vs. 65.83%) while significantly reducing costs and improving scalability; and (2) a hybrid retrieval strategy that fuses vector similarity with graph traversal using Reciprocal Rank Fusion (RRF), maintaining separate embeddings for entities, chunks, and relations to enable multi-granular matching. We evaluate our framework on two enterprise datasets focused on legacy code migration and demonstrate improvements of up to 15% and 4.35% over vanilla vector retrieval baselines using LLM-as-Judge evaluation metrics. These results validate the feasibility of deploying GraphRAG in production enterprise environments, demonstrating that careful engineering of classical NLP techniques can match modern LLM-based approaches while enabling practical, cost-effective, and domain-adaptable retrieval-augmented reasoning at scale.

知识图谱检索增强企业应用高效推理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。