arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.09798cs.SE
收藏

ReadMe.LLM:一个帮助大语言模型理解你的库的框架

ReadMe.LLM: A Framework to Help LLMs Understand Your Library

Sandya Wijaya, Jacob Bolano, Alejandro Gomez Soteres, Shriyanshu Kode, Yue Huang, Anant Sahai

AI总结:

本文提出ReadMe.LLM框架,通过为软件库编写面向LLM的专用文档并附加到查询中,显著提升LLM在小众库代码生成任务上的准确率,最高可达100%。

摘要:

大语言模型(LLMs)在涉及小众软件库的代码生成任务中往往表现不佳。现有的仅面向人类的文档代码生成技术可能会失败——即使LLM可以访问网络搜索且该库有在线文档。为应对这一挑战,我们提出ReadMe.LLM,即面向LLM的软件库文档。通过将ReadMe.LLM的内容附加到查询中,性能持续提升至接近完美的准确率,其中一项案例研究表明在所有测试模型上成功率最高可达100%。我们提出一种软件开发生命周期,在该周期中,LLM专用文档与传统软件更新一同维护。在本研究中,我们展示了ReadMe.LLM思想在多种软件库上的两个实际应用,强调我们提出的方法可以推广到不同编程领域。

英文摘要:

Large Language Models (LLMs) often struggle with code generation tasks involving niche software libraries. Existing code generation techniques with only human-oriented documentation can fail -- even when the LLM has access to web search and the library is documented online. To address this challenge, we propose ReadMe$.$LLM, LLM-oriented documentation for software libraries. By attaching the contents of ReadMe$.$LLM to a query, performance consistently improves to near-perfect accuracy, with one case study demonstrating up to 100% success across all tested models. We propose a software development lifecycle where LLM-specific documentation is maintained alongside traditional software updates. In this study, we present two practical applications of the ReadMe$.$LLM idea with diverse software libraries, highlighting that our proposed approach could generalize across programming domains.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑