Enhancing User Interaction in ChatGPT: Characterizing and Consolidating Multiple Prompts for Issue Resolution (2402.04568v1)
Abstract: Prompt design plays a crucial role in shaping the efficacy of ChatGPT, influencing the model's ability to extract contextually accurate responses. Thus, optimal prompt construction is essential for maximizing the utility and performance of ChatGPT. However, sub-optimal prompt design may necessitate iterative refinement, as imprecise or ambiguous instructions can lead to undesired responses from ChatGPT. Existing studies explore several prompt patterns and strategies to improve the relevance of responses generated by ChatGPT. However, the exploration of constraints that necessitate the submission of multiple prompts is still an unmet attempt. In this study, our contributions are twofold. First, we attempt to uncover gaps in prompt design that demand multiple iterations. In particular, we manually analyze 686 prompts that were submitted to resolve issues related to Java and Python programming languages and identify eleven prompt design gaps (e.g., missing specifications). Such gap exploration can enhance the efficacy of single prompts in ChatGPT. Second, we attempt to reproduce the ChatGPT response by consolidating multiple prompts into a single one. We can completely consolidate prompts with four gaps (e.g., missing context) and partially consolidate prompts with three gaps (e.g., additional functionality). Such an effort provides concrete evidence to users to design more optimal prompts mitigating these gaps. Our study findings and evidence can - (a) save users time, (b) reduce costs, and (c) increase user satisfaction.
- Agronholm. Accessed on: December 2023. Python Suspend Handling Tips. https://chat.openai.com/share/a9811e15-29df-462a-9134-b7b231d79133
- A multitask, multilingual, multimodal evaluation of chatgpt on reasoning, hallucination, and interactivity. arXiv preprint arXiv:2302.04023 (2023).
- BirgerMoell. Accessed on: December 2023. Fixing GitHub Chunked Error. https://chat.openai.com/share/83b0156d-aa19-45a8-b6d5-d5baf7edfe51
- On the opportunities and risks of foundation models. arXiv preprint arXiv:2108.07258 (2021).
- CakeCrusher. Accessed on: December 2023. Setting up MongoDB in Flask. https://chat.openai.com/share/0233d7e5-7286-4416-9f51-150c77dafe80
- Dootsie5times. Accessed on: December 2023. Merge SQLite Databases Python. https://chat.openai.com/share/e47f1906-932a-485c-8aa3-321970cd7f4a
- Prompt Engineering of ChatGPT to Improve Generated Code & Runtime Performance Compared with the Top-Voted Human Solutions. ([n. d.]).
- Jabrena. Accessed on: December 2023. Maven Dependency Retrieval. https://chat.openai.com/share/65a0a5eb-2ac7-478b-87d9-7a62b3471ab2
- Merlijnmacgillavry. Accessed on: December 2023. Flask + RabbitMQ: API Messaging. https://chat.openai.com/share/6d2cf27c-1323-4136-942b-81952b7b9380
- Replication Package. https://figshare.com/s/42a09b45cb1edba97c08
- Cataloging Prompt Patterns to Enhance the Discipline of Prompt Engineering. ([n. d.]).
- Simonw. Accessed on: December 2023a. Accessing Function Docstring (Python). https://chat.openai.com/share/f9b4f1d0-cedb-4576-a145-ad3eac345d27
- Simonw. Accessed on: December 2023b. Function Definition Extraction. https://chat.openai.com/share/b9873d04-5978-489f-8c6b-4b948db7724d
- simonw. Accessed on: December 2023. Optimized Cosine Similarity Benchmark. https://chat.openai.com/share/3b4ae422-17eb-4855-a5d7-e39d3f58c1f7
- A prompt pattern catalog to enhance prompt engineering with chatgpt. arXiv preprint arXiv:2302.11382 (2023).
- Chatgpt prompt patterns for improving code quality, refactoring, requirements elicitation, and software design. arXiv preprint arXiv:2303.07839 (2023).
- DevGPT: Studying Developer-ChatGPT Conversations. (2024).
- Yukizyh. Accessed on: December 2023. dope quat to matrix. https://chat.openai.com/share/a9e30c79-f70a-456d-8e54-2ded88bacab0