亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!身体可是革命的本钱,早点休息,好梦!

Exploring ChatGPT's Potential in Java API Method Recommendation: An Empirical Study

Java 计算机科学 程序设计语言 实证研究 软件工程 统计 数学
作者
Yu Wang,Weihao Xue,Qiao Huang,Bo Jiang,Hua Zhang
出处
期刊:Journal of software [Wiley]
卷期号:37 (1) 被引量:2
标识
DOI:10.1002/smr.2765
摘要

ABSTRACT As software development grows increasingly complex, application programming interface (API) plays a significant role in enhancing development efficiency and code quality. However, the explosive growth in the number of APIs makes it impossible for developers to become familiar with all of them. In actual development scenarios, developers may spend a significant amount of time searching for suitable APIs, which could severely impact the development process. Recently, the OpenAI's large language model (LLM) based application—ChatGPT has shown exceptional performance across various software development tasks, responding swiftly to instructions and generating high‐quality textual responses, suggesting its potential in API recommendation tasks. Thus, this paper presents an empirical study to investigate the performance of ChatGPT in query‐based API recommendation tasks. Specifically, we utilized the existing benchmark APIBENCH‐Q and the newly constructed dataset as evaluation datasets, selecting the state‐of‐the‐art models BIKER and MULAREC for comparison with ChatGPT. Our research findings demonstrate that ChatGPT outperforms existing approaches in terms of success rate, mean reciprocal rank (MRR), and mean average precision (MAP). Through a manual examination of samples in which ChatGPT exceeds baseline performance and those where it provides incorrect answers, we further substantiate ChatGPT's advantages over the baselines and identify several issues contributing to its suboptimal performance. To address these issues and enhance ChatGPT's recommendation capabilities, we employed two strategies: (1) utilizing a more advanced LLM (GPT‐4) and (2) exploring a new approach—MACAR, which is based on the Chain of Thought methodology. The results indicate that both strategies are effective.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
真实的瑾瑜完成签到 ,获得积分10
10秒前
JamesPei应助aa采纳,获得30
14秒前
Ava应助aa采纳,获得50
14秒前
科研通AI6.4应助aa采纳,获得10
14秒前
共享精神应助aa采纳,获得10
14秒前
科研通AI6.4应助aa采纳,获得30
14秒前
JamesPei应助aa采纳,获得10
14秒前
ting应助aa采纳,获得10
14秒前
田様应助aa采纳,获得10
14秒前
ting应助aa采纳,获得30
14秒前
科研通AI6.4应助aa采纳,获得10
14秒前
周鸿宇完成签到,获得积分10
21秒前
科研通AI6.2应助义气凝阳采纳,获得10
34秒前
bkagyin应助清水采纳,获得10
40秒前
传奇3应助权翼采纳,获得10
41秒前
赘婿应助周鸿宇采纳,获得10
41秒前
49秒前
54秒前
54秒前
55秒前
义气凝阳发布了新的文献求助10
56秒前
CipherSage应助研友_nEoDm8采纳,获得10
57秒前
58秒前
权翼发布了新的文献求助10
1分钟前
周鸿宇发布了新的文献求助10
1分钟前
1分钟前
图图完成签到,获得积分10
1分钟前
9527应助科研通管家采纳,获得10
1分钟前
ltt发布了新的文献求助10
1分钟前
daomaihu完成签到,获得积分20
1分钟前
Copyright应助tutu采纳,获得10
1分钟前
丘比特应助VDC采纳,获得10
1分钟前
1分钟前
隐形曼青应助义气凝阳采纳,获得10
1分钟前
1分钟前
1分钟前
VDC发布了新的文献求助10
2分钟前
nonoke完成签到 ,获得积分10
2分钟前
2分钟前
2分钟前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Geist der Kunst und Kultur 1000
Social Psychology in the Real World 800
Resistance Spot Welding Dataset for Automobile Body-in-White Quality Analysis 748
悉尼大学博士学位论文,题目:Modelling and testing of one-sided stitched laminated composites. 作者:Kristopher P. Plain 700
Machine Learning for Asset Management and Pricing 600
Numerical analysis of the coupled atmosphere-ocean models (CAO II). II 600
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7408655
求助须知:如何正确求助?哪些是违规求助? 9012875
关于积分的说明 19194892
捐赠科研通 7041257
什么是DOI,文献DOI怎么找? 3232876
关于科研通互助平台的介绍 2394879
邀请新用户注册赠送积分活动 2215016