From the course: Introduction to Prompt Engineering for Generative AI

Unlock the full course today

Join today to access over 21,400 courses taught by industry experts or purchase this course individually.

Few shot learning

Few shot learning

From the course: Introduction to Prompt Engineering for Generative AI

Start my 1-month free trial

Few shot learning

- [Instructor] Few-Shot learning is such an exciting technique because with little effort, you can start training a model to perform particular tasks. Let me show you what I mean. So when we build a prompt for Few-Shot learning, we start with some examples. And let's start with an example that begins with a paragraph about dogs with a few facts about them. Here we are told that they're mammals who bark and then we have a question and an answer that comes from the paragraph. Now, keep in mind the quality of samples is super important. It shows the model how we want it to behave. So here we see that it's a full answer and that it's from the paragraph. Next, we insert what's known as a stop sequence. And in many cases you will see two hashtags in a stop sequence because two hashtags in a row are not very common in writing. Next, we have another sample that follows the same template this time about Mount Everest followed by…

Contents