arXiv:2507.05279cs.SEcs.AI2025-07

用知识图谱增强LLM,让ReservoirPy代码助手更准确

ReservoirChat: Interactive Documentation Enhanced with LLM and Knowledge Graph for ReservoirPy

  • 结合RAG与知识图谱,提升LLM对储层计算领域的理解
  • 在编码任务上超越Codestral-22B,且比ChatGPT-4o更少幻觉
  • 适合需要精准编程支持的储层计算研究人员

我们提出一种工具,旨在增强大型语言模型(LLMs)在使用ReservoirPy库进行代码开发及回答储层计算领域复杂问题时的能力。通过引入检索增强生成(RAG)和知识图谱的外部知识,该方法致力于减少幻觉并提高生成内容的事实准确性。系统提供类似ChatGPT的交互体验,专为ReservoirPy定制,使用户能够编写、调试和理解Python代码,同时获取可靠的领域特定洞察。评估显示,尽管ChatGPT-4o和NotebookLM在通用知识问题上表现略优,但我们的模型在编码任务上表现更佳,并显著优于其基础模型Codestral-22B。

原文摘要 · Abstract (English)

We introduce a tool designed to improve the capabilities of Large Language Models (LLMs) in assisting with code development using the ReservoirPy library, as well as in answering complex questions in the field of Reservoir Computing. By incorporating external knowledge through Retrieval-Augmented Generation (RAG) and knowledge graphs, our approach aims to reduce hallucinations and increase the factual accuracy of generated responses. The system provides an interactive experience similar to ChatGPT, tailored specifically for ReservoirPy, enabling users to write, debug, and understand Python code while accessing reliable domain-specific insights. In our evaluation, while proprietary models such as ChatGPT-4o and NotebookLM performed slightly better on general knowledge questions, our model outperformed them on coding tasks and showed a significant improvement over its base model, Codestral-22B.

代码生成知识图谱储层计算

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