Large Language Models (LLMs) have rapidly transformed software development, especially in code generation. However, their inconsistent performance, prone to hallucinations and quality issues, complicates program comprehension and hinders maintainability. Research indicates that prompt engineering-the practice of designing inputs to direct LLMs toward generating relevant outputs-may help address these challenges. In this regard, researchers have introduced prompt patterns, structured templates intended to guide users in formulating their requests. However, the influence of prompt patterns on code quality has yet to be thoroughly investigated. An improved understanding of this relationship would be essential to advancing our collective knowledge on how to effectively use LLMs for code generation, thereby enhancing their understandability in contemporary software development. This paper empirically investigates the impact of prompt patterns on code quality, specifically maintainability, security, and reliability, using the Dev-GPT dataset. Results show that Zero-Shot prompting is most common, followed by Zero-Shot with Chain-of-Thought and Few-Shot. Analysis of 7583 code files across quality metrics revealed minimal issues, with Kruskal-Wallis tests indicating no significant differences among patterns, suggesting that prompt structure may not substantially impact these quality metrics in ChatGPT-assisted code generation.
Convergences and Divergences between Automatic Assessment and Human Evaluation: Insights from Comparing ChatGPT-Generated Translation and Neural Machine Translation
School of Foreign Languages, Shanghai Jiao Tong University(上海交通大学外国语学院);Department of Computer Science and Engineering, Shanghai Jiao Tong University(上海交通大学计算机科学与工程系);Institute of Corpus Studies and Applications, Shanghai International Studies University(上海外国语大学语料库研究与应用研究所)
Large language models for crowd decision making based on prompt design strategies using ChatGPT: models, analysis and challenges
Department of Computer Sciences and Artificial Intelligence, and the Andalusian Research Institute in Data Science and Computational Intelligence (DaSCI) University of Granada(计算机科学与人工智能系,加泰罗尼亚数据科学与计算智能研究所(DaSCI)格拉纳达大学);Department of Software Engineering, and the Andalusian Research Institute in Data Science and Computational Intelligence (DaSCI) University of Granada(软件工程系,加泰罗尼亚数据科学与计算智能研究所(DaSCI)格拉纳达大学)
COMPARE: Clinical Optimization with Modular Planning and Assessment via RAG-Enhanced AI-OCT: Superior Decision Support for Percutaneous Coronary Intervention Compared to ChatGPT-5 and Junior Operators
Tangdu Hospital, The Fourth Military Medical University(空军军医大学唐都医院);Research Institute of Tsinghua University in Shenzhen(深圳清华大学研究院);The Second Affiliated Hospital, Air Force Medical University(空军军医大学第二附属医院)
From Code to Compliance: Assessing ChatGPT's Utility in Designing an Accessible Webpage -- A Case Study
Department of Computer Science, Norwegian University of Science and Technology(计算机科学系,挪威科学技术大学);Department of Design, Norwegian University of Science and Technology(设计系,挪威科学技术大学)
Performance of ChatGPT on the US Fundamentals of Engineering Exam: Comprehensive Assessment of Proficiency and Potential Implications for Professional Environmental Engineering Practice
IIHR – Hydroscience & Engineering, University of Iowa(爱荷华大学IIHR水文科学与工程研究所);Civil and Environmental Engineering, University of Iowa(爱荷华大学土木与环境工程学院);Electrical and Computer Engineering, University of Iowa(爱荷华大学电气与计算机工程学院)
本文评估基于 GPT-4 的 ChatGPT 在美国 FE 环境考试中的表现,发现非侵入式提示词修改可显著提升准确率,并探讨其教育应用、局限及考试诚信意义。
University of California, Los Angeles(加州大学洛杉矶分校);Nanyang Technological University(南洋理工大学);University of California, Davis(加州大学戴维斯分校);National University of Singapore(新加坡国立大学);Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))
Zero- and Few-shot Named Entity Recognition and Text Expansion in Medication Prescriptions using ChatGPT
Chiang Mai University(清迈大学);Friedrich-Alexander-Universität Erlangen-Nürnberg(埃尔朗根-纽伦堡弗里德里希-亚历山大大学);Universitätsklinikum Erlangen(埃尔朗根大学医院);Center of Data Analytics and Knowledge Synthesis for Health Care(医疗保健数据分析与知识综合中心);Medical University of Graz(格拉茨医科大学)
Can ChatGPT Overcome Behavioral Biases in the Financial Sector? Classify-and-Rethink: Multi-Step Zero-Shot Reasoning in the Gold Investment
Hong Kong University of Science and Technology(香港科技大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);E Fund Management Co., Ltd(易方达基金管理有限公司)
Jailbreaking ChatGPT via Prompt Engineering: An Empirical Study
Nanyang Technological University(南洋理工大学);University of New South Wales(新南威尔士大学);Virginia Tech(弗吉尼亚理工大学);Huazhong University of Science and Technology(华中科技大学)