Unleashing the potential of prompt engineering in Large Language Models: a comprehensive review
Preprint
Abstract
This paper delves into the pivotal role of prompt engineering in unleashing the capabilities of Large Language Models (LLMs). Prompt engineering is the process of structuring input text for LLMs and is a technique integral to optimizing the efficacy of LLMs. This survey elucidates foundational principles of prompt engineering, such as role-prompting, one-shot, and few-shot prompting, as well as more advanced methodologies such as the chain-of-thought and tree-of-thoughts prompting. The paper sheds light on how external assistance in the form of plugins can assist in this task, and reduce machine hallucination by retrieving external knowledge. We subsequently delineate prospective directions in prompt engineering research, emphasizing the need for a deeper understanding of structures and the role of agents in Artificial Intelligence-Generated Content (AIGC) tools. We discuss how to assess the efficacy of prompt methods from different perspectives and using different methods. Finally, we gather information about the application of prompt engineering in such fields as education and programming, showing its transformative potential. This comprehensive survey aims to serve as a friendly guide for anyone venturing through the big world of LLMs and prompt engineering.Keywords
All Related Versions
This publication has 36 references indexed in Scilit:
- A survey on large language model based autonomous agentsFrontiers of Computer Science, 2024
- Identifying and Extracting Rare Diseases and Their Phenotypes with Large Language ModelsJournal of Healthcare Informatics Research, 2024
- If Our Aim Is to Build Morality Into an Artificial Agent, How Might We Begin to Go About Doing So?IEEE Intelligent Systems, 2023
- Prompt engineering for zero‐shot and few‐shot defect detection and classification using a visual‐language pretrained modelComputer-Aided Civil and Infrastructure Engineering, 2022
- Obtaining genetics insights from deep learning via explainable artificial intelligenceNature Reviews Genetics, 2022
- ML4STEM Professional Development Program: Enriching K-12 STEM Teaching with Machine LearningInternational Journal of Artificial Intelligence in Education, 2022
- Towards Trustworthy AutoGrading of Short, Multi-lingual, Multi-type AnswersInternational Journal of Artificial Intelligence in Education, 2022
- AI in health and medicineNature Medicine, 2022
- Machine Learning and Hebrew NLP for Automated Assessment of Open-Ended Questions in BiologyInternational Journal of Artificial Intelligence in Education, 2022
- What Does Artificial Intelligence Mean for Organizations? A Systematic Review of Organization Studies Research and a Way Forward2021