arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.05255cs.SEcs.CL
收藏

CallNavi:关于LLM函数调用与路由的挑战及实证研究

CallNavi, A Challenge and Empirical Study on LLM Function Calling and Routing

University of Luxembourg(卢森堡大学);Luxembourg Institute of Science and Technology(卢森堡科学与技术研究所);Department of Information and Computer Science(信息与计算机科学系);BGL BNP PARIBAS;Interdisciplinary Research Center for Intelligent Manufacturing and Robotics(智能制造与机器人跨学科研究中心)

Yewei Song, Xunzhu Tang, Cedric Lothritz, Saad Ezzini, Jacques Klein, Tegawendé F. Bissyandé, Andrey Boytsov, Ulrick Ble, Anne Goujon

AI总结:

本研究提出CallNavi,通过新数据集、实证评估和混合路由方法,解决LLM在API函数调用与参数生成中的挑战,提升聊天机器人系统API执行效率。

摘要:

API驱动的聊天机器人系统在软件工程应用中日益不可或缺,然而其有效性取决于能否准确生成和执行API调用。在需要多步交互、复杂参数化和嵌套API依赖的场景中,这一任务尤为艰巨。针对这些挑战,本工作通过三项关键进展为基于AI的软件开发评估与评测做出贡献:(1)引入一个专为基准测试API函数选择、参数生成和嵌套API执行而设计的新数据集;(2)对最先进的语言模型进行实证评估,分析其在API函数生成和参数准确性方面随任务复杂度变化的表现;(3)提出一种混合API路由方法,将通用大语言模型用于API选择,并结合微调模型和提示工程进行参数生成。这些创新显著提升了聊天机器人系统中的API执行,为现实软件工程环境中改进软件设计、测试和运维流程提供了实用方法。

英文摘要:

API-driven chatbot systems are increasingly integral to software engineering applications, yet their effectiveness hinges on accurately generating and executing API calls. This is particularly challenging in scenarios requiring multi-step interactions with complex parameterization and nested API dependencies. Addressing these challenges, this work contributes to the evaluation and assessment of AI-based software development through three key advancements: (1) the introduction of a novel dataset specifically designed for benchmarking API function selection, parameter generation, and nested API execution; (2) an empirical evaluation of state-of-the-art language models, analyzing their performance across varying task complexities in API function generation and parameter accuracy; and (3) a hybrid approach to API routing, combining general-purpose large language models for API selection with fine-tuned models and prompt engineering for parameter generation. These innovations significantly improve API execution in chatbot systems, offering practical methodologies for enhancing software design, testing, and operational workflows in real-world software engineering contexts.

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

↑