From the course: GPT-4 Foundations: Building AI-Powered Apps

Unlock the full course today

Join today to access over 23,100 courses taught by industry experts.

Configuring the system prompt

Configuring the system prompt

- [Instructor] What would happen if we could make GPT-4 focus on a certain task? Would it become better or is the magic of GPT-4 its ability to do a little bit of everything? Today, we'll be talking about focusing our GPT-4 responses by using the system variable. On the left-hand side here, you can see that we have the system prompt, but we haven't talked about it much. What the system prompt does is that it allows us to provide instructions to GPT-4. You can see here, there's this kind of faded, "you are a helpful assistant." This is the default system prompt for GPT-4 and also for ChatGPT. And what we can do here is we can assign a task or a persona to GPT-4. When we're having conversations between the assistant and the user, GPT-4 will act as the assistant and try to accomplish objectives specified in the system prompt. Now let's go through an example. In this example that you can find in the exercise files, we…

Contents