Prompt Engineering
In this chapter, we’ll dive into a special set of techniques called prompt engineering. You’ll learn about this technique at a high level, including how it is similar to and different from other learning-based topics covered throughout this book. We’ll explore examples across vision and language and dive into key terms and success metrics. In particular, this chapter covers all of the tips and tricks for improving performance without updating the model weights. This means we’ll be mimicking the learning process, without necessarily changing any of the model parameters. This includes some advanced techniques such as prompt and prefix tuning. We will cover the following topics in this chapter:
- Prompt engineering – the art of getting more with less
- From few- to zero-shot learning
- Tips and tricks for text-to-image prompting
- Best practices for image-to-image prompting
- Prompting large language models
- Advanced...