The reviewed record of science sign in
Pith

arxiv: 2412.03573 · v1 · pith:AH4BNZ6W · submitted 2024-11-17 · cs.IR · cs.AI· cs.CL

Improving Tool Retrieval by Leveraging Large Language Models for Query Generation

Reviewed by Pith T0 review T1 audit T2 compute T3 formal T4 kernel pith:AH4BNZ6Wrecord.jsonopen to challenge →

classification cs.IR cs.AIcs.CL
keywords toolsretrievalqueryapproachesgenerationlanguageleveragingrelevant
0
0 comments X
read the original abstract

Using tools by Large Language Models (LLMs) is a promising avenue to extend their reach beyond language or conversational settings. The number of tools can scale to thousands as they enable accessing sensory information, fetching updated factual knowledge, or taking actions in the real world. In such settings, in-context learning by providing a short list of relevant tools in the prompt is a viable approach. To retrieve relevant tools, various approaches have been suggested, ranging from simple frequency-based matching to dense embedding-based semantic retrieval. However, such approaches lack the contextual and common-sense understanding required to retrieve the right tools for complex user requests. Rather than increasing the complexity of the retrieval component itself, we propose leveraging LLM understanding to generate a retrieval query. Then, the generated query is embedded and used to find the most relevant tools via a nearest-neighbor search. We investigate three approaches for query generation: zero-shot prompting, supervised fine-tuning on tool descriptions, and alignment learning by iteratively optimizing a reward metric measuring retrieval performance. By conducting extensive experiments on a dataset covering complex and multi-tool scenarios, we show that leveraging LLMs for query generation improves the retrieval for in-domain (seen tools) and out-of-domain (unseen tools) settings.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.