From the course: AWS Certified AI Practitioner (AIF-C01) Cert Prep

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Prompt engineering concepts

Prompt engineering concepts

- When using foundation models, regardless of the domain or specific use case, prompt engineering is important. Prompt engineering is the process of designing and refining your input prompts, so that you can optimize the performance of that model. And what this will do is help to enhance the quality. It guides model behavior and improves the overall accuracy, which really leads to improved business value. There are some key components of prompt engineering. First is context, and this is information that surrounds the prompt to help the model understand more about the scenario and what exactly you're asking it to do. Then we have the instruction, and that's the specific task or question that's being posed to the model. And here's an interesting one, negative prompts. These are instructions that specify what the model shouldn't do, what it should avoid in the response. And so let's take a look at these, context. This is the background information that sets the stage for the prompt. And…

Contents