高级检索

基于宽度优先搜索策略的工具文档增强方法

Tool Documentation Enhancement Method Based on Breadth-first Search Strategy

  • 摘要: 使用外部工具可以显著增强大语言模型(Large Language Models, LLMs)的任务解决能力。为了让LLMs能够准确使用工具,开发人员通常会在其上下文中提供工具的文档。然而,这些文档存在各种问题,如工具描述不完整、参数或响应描述不足。为了解决上述问题,该文提出了一种名为DocExplor的方法,通过探索工具的使用来修订工具文档。DocExplor采用宽度优先搜索(Breadth-First Search, BFS)策略来探索各种工具使用场景,并收集从探索中获得的信息来修订工具文档,从而提高模型准确使用工具的能力。大量实验表明,DocExplor方法可以显著减少选错工具的情况,并提高LLMs准确使用工具的能力。例如,在TMDB数据集上的实验显示,使用DocExplor方法后成功率提升10个百分点,进一步证明了其有效性和可靠性。

     

    Abstract: Tools can significantly enhance the task-solving capabilities of Large Language Models (LLMs). To enable LLMs to accurately use tools, developers typically provide tool documentation within the LLMs' context. However, these documents often suffer from various issues, such as incomplete tool descriptions and insufficient parameter or response descriptions. To address this issue, this paper proposes a method called DocExplor, which revises tool documentation by exploring tool usage. DocExplor employs a Breadth-First Search (BFS) strategy to explore various tool usage scenarios and collects information from this exploration to revise the tool documentation, thereby improving the models' ability to accurately use tools. Extensive experiments demonstrate that the DocExplor method can significantly improve the accuracy of tool usage by LLMs, e.g. 10% increase in success rate on the TMDB dataset.

     

/

返回文章
返回