Automating API Documentation from Crowdsourced Knowledge

Read full text
Authors: Bonan Kou, Zijie Zhou, Muhao Chen, Tianyi Zhang
Cited by: 0
References: 38

Abstract

API documentation is crucial for developers to learn and use APIs. However, it is known that many official API documents are obsolete and incomplete. To address this challenge, we propose a new approach called AutoDoc that generates API documents with API knowledge extracted from online discussions on Stack Overflow (SO). AutoDoc leverages a fine-tuned dense retrieval model to identify seven types of API knowledge from SO posts. Then, it uses GPT-4o to summarize the API knowledge in these posts into concise text. Meanwhile, we designed two specific components to handle LLM hallucination and redundancy in generated content.

Fields of Study & Subjects

Software Engineering Research Topic Modeling Software Engineering Techniques and Practices

Publication details

Journal / source
IEEE/ACM International Conference on Software Engineering (ICSE)
Pages
868–880
Publication date
12 April 2026