Summary
In this chapter, we introduced prompt engineering, one of the most exciting new fields to emerge of late. We covered a number of key aspects associated with this field by first presenting a historical need to have a more natural interface to work with computers right from the days of COBOL. We covered details on prompt design fundamentals, diving into topics such as system instructions, prompt templates, and LLM parameters. We then covered a number of good practices and strategies to develop effective prompts. We also covered task-specific prompting techniques and closed the discussion by providing a brief introduction to some advanced prompting techniques, such as Chain of Thought and Tree of Thought. We extended this discussion to provide an overview of prompting best practices for vision/image, audio, and multi-modal models. Throughout the chapter, we also worked through hands-on examples to put the theory into practice. Toward the end of the chapter, we covered the topic...