Software libraries play a critical role in the functionality, efficiency, and maintainability of software systems. As developers increasingly rely on Large Language Models (LLMs) to streamline their coding processes, the effectiveness of these models in recommending appropriate libraries becomes crucial yet remains largely unexplored. In this paper, we assess the effectiveness of ChatGPT as a software librarian and identify areas for improvement. We conducted an empirical study using GPT-3.5 Turbo to generate Python code for 10,000 Stack Overflow questions. Our findings show that ChatGPT uses third-party libraries nearly 10% more often than human developers, favoring widely adopted and well-established options. However, 14.2% of the recommended libraries had restrictive copyleft licenses, which were not explicitly communicated by ChatGPT. Additionally, 6.5% of the libraries did not work out of the box, leading to potential developer confusion and wasted time. While ChatGPT can be an effective software librarian, it should be improved by providing more explicit information on maintainability metrics and licensing. We recommend that developers implement rigorous dependency management practices and double-check library licenses before integrating LLM-generated code into their projects.
ChatGPT is fun, but it is not funny! Humor is still challenging Large Language Models
Institute for Software Technology, German Aerospace Center (DLR)(德国航空航天中心(DLR)软件技术研究所);Technical University Darmstadt(达姆施塔特工业大学);Centre for Cognitive Science, TU Darmstadt(达姆施塔特工业大学认知科学中心);Hessian Center for AI (hessian.AI)(黑森人工智能中心(hessian.AI))
Exploring the Impact of Generative Artificial Intelligence in Education: A Thematic Analysis
Dundalk Institute of Technology(唐道克理工学院);Dublin Business School(都柏林商学院);University College Dublin(都柏林大学学院);Technological University Dublin(都柏林理工大学);Jagan Institute of Management Studies(贾根管理学院)
An exploratory analysis of Community-based Question-Answering Platforms and GPT-3-driven Generative AI: Is it the end of online community-based learning?
ChatGPT: Friend or Foe When Comprehending and Changing Unfamiliar Code
University of Victoria(维多利亚大学);University of Zurich(苏黎世大学);University of Southampton(南安普顿大学);Pontifícia Universidade Católica do Rio Grande do Sul(南里奥格兰德天主教大学)