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.

Solution: Zero-shot, few-shot learning

Solution: Zero-shot, few-shot learning

From the course: Introduction to Prompt Engineering for Generative AI

Start my 1-month free trial

Solution: Zero-shot, few-shot learning

(upbeat music) - [Instructor] So the goal of this challenge was to take a paragraph and turn it into a Q&A engine that rhymes. So basically it answers questions in rhymes for educational purposes. And the input was this paragraph about Jupiter. And hopefully you had fun with this one and I'll show you how I went about doing this. So the first example I have here is using the Zero-shot approach. So instead of the instruction that we had on top telling it to summarize this for a second grader, I added this instruction right here. So I told it to answer in rhymes as Jupiter in the first person and then I added a question and a room for answer. I tried to avoid having white spaces here so I won't have a space here. The model doesn't seem to appreciate that. So I'm going to go ahead and submit. And the question was, what's the biggest planet in the solar system? And it's answering in rhyme. Now to turn this into a…

Contents