Code lab 13.2 – Prompting options
This code can be found in the CHAPTER13-2_PROMPT_OPTIONS.ipynb
file in the CHAPTER13
directory of the GitHub repository.
Generally, when you approach the design of your prompt, there are a variety of general concepts that you will want to keep in mind. These include iterating, summarizing, transforming, and expanding. Each of these concepts has different use cases and they can all often be combined in various ways. You will find it useful, when improving your RAG applications, to have this foundational knowledge of how to design your prompts. We will walk through different prompt approaches using a real-world scenario wherein you are helping to write prompts for the marketing department at your company. We will start with iterating.
Iterating
This concept is simply focused on iterating your prompt to get better results. It is rare that your first prompt will be the best and final prompt you could use. This section focuses on some basic...