RE-GAINS & EnChAnT: 用于增强查询响应的智能工具操作系统
RE-GAINS & EnChAnT: Intelligent Tool Manipulation Systems For Enhanced Query Responses
AI总结:
针对大语言模型工具调用与链式操作易出错的问题,提出RE-GAINS和EnChAnT两个低成本框架,基于工具描述实现外部工具调用与链式组合,提升复杂查询处理能力。
摘要:
大语言模型(LLM)目前在工具调用与链式调用方面存在困难,常出现幻觉或遗漏序列中的关键步骤。我们提出RE-GAINS和EnChAnT两个新型框架,使LLM能够根据工具描述和参数列表调用外部工具的API,处理复杂用户查询。工具基于预期输出进行链式组合,无需接收每次调用的实际结果。开源方案EnChAnT采用LLM格式强制器、OpenChat 3.5(一款LLM)和ToolBench的API Retriever。RE-GAINS使用OpenAI模型与嵌入向量,搭配基于“推理通过规划(Reasoning via Planning, RAP)”框架的专用提示词。两个框架成本都很低(每次查询0.01美元)。我们的核心贡献是让LLM能够使用可修改的外部描述型工具进行调用与链式操作。
英文摘要:
Large Language Models (LLMs) currently struggle with tool invocation and chaining, as they often hallucinate or miss essential steps in a sequence. We propose RE-GAINS and EnChAnT, two novel frameworks that empower LLMs to tackle complex user queries by making API calls to external tools based on tool descriptions and argument lists. Tools are chained based on the expected output, without receiving the actual results from each individual call. EnChAnT, an open-source solution, leverages an LLM format enforcer, OpenChat 3.5 (an LLM), and ToolBench's API Retriever. RE-GAINS utilizes OpenAI models and embeddings with a specialized prompt based on the $\underline{R}$easoning vi$\underline{a}$ $\underline{P}$lanning $(RAP)$ framework. Both frameworks are low cost (0.01\$ per query). Our key contribution is enabling LLMs for tool invocation and chaining using modifiable, externally described tools.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。