Let's Chat to Find the APIs: Connecting Human, LLM and Knowledge Graph through AI Chain
Not on the map. Why?
Abstract (arXiv)
API recommendation methods have evolved from literal and semantic keyword matching to query expansion and query clarification. The latest query clarification method is knowledge graph (KG)-based, but limitations include out-of-vocabulary (OOV) failures and rigid question templates. To address these limitations, we propose a novel knowledge-guided query clarification approach for API recommendation that leverages a large language model (LLM) guided by KG. We utilize the LLM as a neural knowledge base to overcome OOV failures, generating fluent and appropriate clarification questions and options. We also leverage the structured API knowledge and entity relationships stored in the KG to filter out noise, and transfer the optimal clarification path from KG to the LLM, increasing the efficiency of the clarification process. Our approach is designed as an AI chain that consists of five steps, each handled by a separate LLM call, to improve accuracy, efficiency, and fluency for query clarification in API recommendation. We verify the usefulness of each unit in our AI chain, which all received high scores close to a perfect 5. When compared to the baselines, our approach shows a significant improvement in MRR, with a maximum increase of 63.9% higher when the query statement is covered in KG and 37.2% when it is not. Ablation experiments reveal that the guidance of knowledge in the KG and the knowledge-guided pathfinding strategy are crucial for our approach's performance, resulting in a 19.0% and 22.2% increase in MAP, respectively. Our approach demonstrates a way to bridge the gap between KG and LLM, effectively compensating for the strengths and weaknesses of both.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). First posted on arXiv 28 Sep 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 2; 2025: 3; 2026: 2.
7 papers.
- 2024The Open Source Advantage in Large Language Models (LLMs)cited by 18
- 2025Self-supervised Quantized Representation for Seamlessly Integrating Knowledge Graphs with Large Language Modelscited by 11
- 2024API Pack: A Massive Multi-Programming Language Dataset for API Call Generationcited by 5
- 2025HealthGenie: Empowering Users with Healthy Dietary Guidance through Knowledge Graph and Large Language Modelscited by 4
- 2026Skill2Query: Exploiting Skill Structure to Generate Pseudo-Queries for Agent Skill Retrievalcited by 2
- 2025Initial Steps in Integrating Large Reasoning and Action Models for Service Compositioncited by 0
- 2026WebMAC: A Multi-Agent Collaborative Framework for Scenario Testing of Web Systemscited by 0
- 2026Skill2Query: Exploiting Skill Structure to Generate Pseudo-Queries for Agent Skill Retrieval17 Aug 2026
- 2026WebMAC: A Multi-Agent Collaborative Framework for Scenario Testing of Web Systems15 Apr 2026
- 2025Initial Steps in Integrating Large Reasoning and Action Models for Service Composition24 Jul 2025
- 2025HealthGenie: Empowering Users with Healthy Dietary Guidance through Knowledge Graph and Large Language Models20 Apr 2025
- 2025Self-supervised Quantized Representation for Seamlessly Integrating Knowledge Graphs with Large Language Models30 Jan 2025
- 2024The Open Source Advantage in Large Language Models (LLMs)16 Dec 2024
- 2024API Pack: A Massive Multi-Programming Language Dataset for API Call Generation14 Feb 2024