Let's Chat to Find the APIs: Connecting Human, LLM and Knowledge Graph through AI Chain

计算机科学 语义匹配 知识库 情报检索 杠杆(统计) 流利 图形 人工智能 自然语言处理 匹配(统计) 理论计算机科学 数学 语言学 统计 哲学
作者
Qing Huang,Zhenyu Wan,Zhenchang Xing,Changjing Wang,Jieshan Chen,Xiwei Xu,Qinghua Lu
标识
DOI:10.1109/ase56229.2023.00075
摘要

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.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
干净的琦应助天真跳跳糖采纳,获得20
刚刚
科研通AI6.3应助Andy采纳,获得10
刚刚
刚刚
刚刚
丁柯欣完成签到,获得积分20
刚刚
自行车v完成签到,获得积分10
1秒前
幽默厉发布了新的文献求助10
1秒前
1秒前
1秒前
suxiang发布了新的文献求助50
1秒前
lai123发布了新的文献求助10
1秒前
Polly完成签到,获得积分10
1秒前
2秒前
土拨鼠完成签到,获得积分10
2秒前
拉长的煎饼完成签到,获得积分10
2秒前
2秒前
2秒前
2秒前
远不止这些完成签到,获得积分10
2秒前
天天快乐应助成就思枫采纳,获得10
3秒前
yzg发布了新的文献求助10
3秒前
3秒前
4秒前
你好完成签到 ,获得积分10
4秒前
wd完成签到,获得积分10
4秒前
土拨鼠发布了新的文献求助10
4秒前
蔡菜菜完成签到 ,获得积分10
5秒前
就而酒完成签到,获得积分10
5秒前
钩子89发布了新的文献求助10
5秒前
JamesPei应助gdh采纳,获得10
5秒前
星星之火完成签到,获得积分10
5秒前
caiyuxi发布了新的文献求助10
6秒前
负责亦绿完成签到,获得积分10
6秒前
zhuyutian发布了新的文献求助10
6秒前
6秒前
瘦瘦寻菡完成签到,获得积分20
7秒前
Lucas应助QIQI采纳,获得10
7秒前
7秒前
7秒前
7秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Metallurgy at high pressures and high temperatures 2000
Inorganic Chemistry Eighth Edition 1200
PowerCascade: A Synthetic Dataset for Cascading Failure Analysis in Power Systems 1000
The Organic Chemistry of Biological Pathways Second Edition 1000
The Psychological Quest for Meaning 800
Signals, Systems, and Signal Processing 610
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6330323
求助须知:如何正确求助?哪些是违规求助? 8146741
关于积分的说明 17092981
捐赠科研通 5385041
什么是DOI,文献DOI怎么找? 2855632
邀请新用户注册赠送积分活动 1833206
关于科研通互助平台的介绍 1684578