LARCH: Large Language Model-based Automatic Readme Creation with Heuristics

Yuta Koreeda, Terufumi Morishita, Osamu Imaichi, Yasuhiro Sogawa
8/6/2023
11 citations
cs.CLcs.SE

Official code: hitachi-nlp/larch (17 stars, Python, Apache-2.0, last commit 2023-07-01).

Abstract

Writing a readme is a crucial aspect of software development as it plays a vital role in managing and reusing program code. Though it is a pain point for many developers, automatically creating one remains a challenge even with the recent advancements in large language models (LLMs), because it requires generating an abstract description from thousands of lines of code.

Show full abstract

In this demo paper, we show that LLMs are capable of generating a coherent and factually correct readmes if we can identify a code fragment that is representative of the repository. Building upon this finding, we developed LARCH (LLM-based Automatic Readme Creation with Heuristics) which leverages representative code identification with heuristics and weak supervision. Through human and automated evaluations, we illustrate that LARCH can generate coherent and factually correct readmes in the majority of cases, outperforming a baseline that does not rely on representative code identification. We have made LARCH open-source and provided a cross-platform Visual Studio Code interface and command-line interface, accessible at https://github.com/hitachi-nlp/larch. A demo video showcasing LARCH's capabilities is available at https://youtu.be/ZUKkh5ED-O4.

View on arXivView PDF

Code Implementations(1)

hitachi-nlp/larchOfficial100%
Apache-2.0

LARCH: Large Language Model-based Automatic Readme Creation with Heuristics

173Python, ShellFeb 16, 20233 years agoApache-2.0

Similar Papers

Cite this paper

@article{koreeda2023larch,
  title  = {LARCH: Large Language Model-based Automatic Readme Creation with Heuristics},
  author = {Yuta Koreeda and Terufumi Morishita and Osamu Imaichi and Yasuhiro Sogawa},
  year   = {2023},
  eprint = {2308.03099},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.03099v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.03099.svg)](https://codeofpaper.com/paper/2308.03099)

Discussion