Answering Uncertain, Under-Specified API Queries Assisted by Knowledge-Aware Human-AI Dialogue

04/27/2023
by   Qing Huang, et al.
0

Developers' API needs should be more pragmatic, such as seeking suggestive, explainable, and extensible APIs rather than the so-called best result. Existing API search research cannot meet these pragmatic needs because they are solely concerned with query-API relevance. This necessitates a focus on enhancing the entire query process, from query definition to query refinement through intent clarification to query results promoting divergent thinking about results. This paper designs a novel Knowledge-Aware Human-AI Dialog agent (KAHAID) which guides the developer to clarify the uncertain, under-specified query through multi-round question answering and recommends APIs for the clarified query with relevance explanation and extended suggestions (e.g., alternative, collaborating or opposite-function APIs). We systematically evaluate KAHAID. In terms of human-AI dialogue efficiency, it achieves a high diversity of question options and the ability to guide developers to find APIs using fewer dialogue rounds. For API recommendation, KAHAID achieves an MRR and MAP of 0.769 and 0.794, outperforming state-of-the-art methods BIKER and CLEAR by at least 47 obtains an MRR and MAP of 0.815 and 0.864, surpassing ZaCQ by at least 42 MRR and 45.2% in MAP. Furthermore, we conduct a user study. It shows that explainable API recommendations, as implemented by KAHAID, can help developers identify the best API approach more easily or confidently, improving inspiration of clarification question options by at least 20.83 extensibility of extended APIs by at least 12.5

READ FULL TEXT

page 3

page 14

page 17

research
03/22/2023

PICASO: Enhancing API Recommendations with Relevant Stack Overflow Posts

While having options could be liberating, too many options could lead to...
research
09/05/2019

An Empirical Study on the Characteristics of Question-Answering Process on Developer Forums

Developer forums are one of the most popular and useful Q&A websites on ...
research
10/28/2021

Multi-stage Clarification in Conversational AI: The case of Question-Answering Dialogue Systems

Clarification resolution plays an important role in various information ...
research
09/13/2023

APICom: Automatic API Completion via Prompt Learning and Adversarial Training-based Data Augmentation

Based on developer needs and usage scenarios, API (Application Programmi...
research
12/14/2022

API-Spector: an API-to-API Specification Recommendation Engine

When designing a new API for a large project, developers need to make sm...
research
07/26/2021

Dialogue Management for Interactive API Search

API search involves finding components in an API that are relevant to a ...
research
05/23/2023

On the relevance of APIs facing fairwashed audits

Recent legislation required AI platforms to provide APIs for regulators ...

Please sign up or login with your details

Forgot password? Click here to reset