arXiv:2605.07517cs.IRcs.AI2026-05

利用文档超链接结构提升RAG检索效率与准确性

LARAG: Link-Aware Retrieval Strategy for RAG Systems in Hyperlinked Technical Documentation

论文配图:LARAG: Link-Aware Retrieval Strategy for RAG Systems in Hyperlinked Technical Documentation
图 1 · 摘自论文原文
  • 将超链接关系作为元数据嵌入文本块,实现类图检索
  • 在20个专家查询中提升BERTScore F1,减少检索块数和生成词数
  • 无需构建图结构,适合技术文档场景的轻量级优化

检索增强生成(RAG)通过外部文档增强大模型的事实准确性。然而,标准基于嵌入的检索器将技术手册等结构化语料视为扁平片段,忽略了用户依赖的超链接拓扑。本文提出LARAG:一种轻量级、感知超链接的检索策略,利用现有HTML文档中的作者定义超链接,将链接关系编码为文本块的元数据,并据此进行局部相关内容的类图式检索。在针对Rulex平台技术文档设计的20个专家查询上,结合四种提示策略,LARAG持续提升答案质量,达到最高BERTScore F1,同时检索块数更少、生成词数更低。结果表明,直接利用现有技术文档的超链接拓扑,即使不显式构建图结构或推理,也能实现隐式图式检索,使RAG系统更忠实、高效,以更低成本实现更好事实对齐。

原文摘要 · Abstract (English)

Retrieval-Augmented Generation (RAG) enhances the factual grounding of Large Language Models by conditioning their outputs on external documents. However, standard embedding-based retrievers treat naturally structured corpora, such as technical manuals, as flat collections of passages, thereby overlooking the hyperlink topology that users rely on when navigating such content. We introduce LARAG (Link-Aware RAG): a lightweight, link-aware retrieval strategy that leverages the author-defined hyperlink structure already present in HTML documentation, encoding hyperlink relations as metadata in the chunk representations and exploiting them to perform a form of graph-like retrieval of locally relevant content. In a benchmark of twenty expert-designed queries over Rulex Platform technical documentation and four prompting strategies, LARAG consistently improves answer quality, achieving the highest BERTScore F1, while retrieving fewer chunks and generating fewer tokens than a baseline RAG architecture used for comparison. These results show that directly leveraging the existing hyperlink topology of technical documentation, even without explicit graph construction or inference, enables an implicit form of graph-like retrieval that yields a more faithful and efficient RAG pipeline, providing better grounding at lower cost.

RAG超链接技术文档检索优化

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