From the course: Prompt Engineering: How to Talk to the AIs
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
Prompt engineering tips and tricks - GPT Tutorial
From the course: Prompt Engineering: How to Talk to the AIs
Prompt engineering tips and tricks
- Let's take a moment and consider a few other tips and tricks you can try when creating prompts. The first is the order of the examples in the prompt. Keep in mind that LLMs like GPT only read forward, and are in fact completing texts. This means that it's worth to prompt them in the right order. It has been found that giving the instructions before the example helps. Furthermore, even the order of the examples makes a difference. Keep that in mind, and experiment with different orders of prompt and example. Next is affordances. Affordances are functions that are defined in the prompt, and the model is explicitly instructed to use when responding. For example, you can tell the model whenever finding a mathematical expression, it should call an explicit calc function, and compute the numerical result before proceeding. It has been shown that using affordances can help in many cases. You can also use different…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.