RE-GAINS & EnChAnT: Intelligent Tool Manipulation Systems For Enhanced Query Responses

Sahil Girhepuje,Siva Sankar Sajeev,Purvam Jain,Arya Sikder,Adithya Rama Varma,Ryan George,Akshay Govind Srinivasan,Mahendra Kurup,Ashmit Sinha,Sudip Mondal
2024-06-20
Abstract: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.
Computation and Language
What problem does this paper attempt to address?
The problem that this paper attempts to solve is the difficulties encountered by large - language models (LLMs) when invoking and linking external tools. Specifically, current LLMs often experience hallucinations or miss crucial steps when handling tool invocations and linkages. The paper proposes two new frameworks, RE - GAINS and EnChAnT, aiming to enhance the ability of LLMs to handle complex user queries by making API calls to external tools based on tool descriptions and parameter lists. These tools are linked according to the expected output without the need to receive the actual results of each individual call. These two frameworks can not only operate at a low cost ($0.01 per query) but also significantly improve the performance of LLMs by using modifiable, externally - described tools to invoke and link tools.