Advanced prompt design
As your generative AI applications become more complex, vanilla zero-shot or few-shot prompting might not be enough. The next few chapters will look at the various aspects of developing more complex solutions that allow us to enhance LLMs and use their reasoning capabilities to solve complex tasks.
First, we will start with a few prompt design techniques. There is still a lot of confusion between prompt engineering and prompt design in the industry, and the distinction is not always clear. However, you can think about prompt engineering as a way to formulate more efficient prompts (or, in other words, to describe your specific task in natural language), and prompt design as a way to create prompt templates that improve the performance of a wide variety of tasks (each of them would still need a specifically engineered prompt). We will look into a few prompt design techniques in this chapter.
Let’s start with a simple math problem:
math_problem1...