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.

Adding context for a more powerful application

Adding context for a more powerful application - GPT Tutorial

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

Adding context for a more powerful application

- [Instructor] What was magical about ChatGPT and GPT-4 when they first came out was their ability to remember past parts of your conversation. You could say that you had a pet dog and ask a follow-up question about, "What kind of pet did I have?" And it would remember. Now, these magical moments were probably a reason why these systems became so popular. So how do we use this memory for building our own conversational AI apps? If we're building an e-commerce chatbot, remembering what users previously said makes the experience much more natural. In this video, we're going to go through an exercise of using context to improve our responses. What's nice about GPT-4 is that context is built in by default. Let's learn how to use it. In the system prompt, let's add in an objective for keeping track of customer orders. Let's go ahead and I'm going to write, "Help the user keep track of what their order contains." It's a…

Contents