Prompt engineering

Prompt engineering is the process of writing better prompts to large language models to get the desired output more often. It is a complex language task which requires deep reasoning as it involves closely examining a model's errors. hypothesizing what is missing and/or misleading in the current prompt, and then, communicating the task more clearly back to the large language model. There are two easy methods for prompting a large language model to improve its output: asking the model to "think step by step", and, instructing the model to reflect on its outputs [1].

Image credits: Q. Ye et al, https://arxiv.org/pdf/2311.05661.pdf