From the course: Prompt Engineering with Gemini (2024)
Writing your first prompt - Gemini Tutorial
From the course: Prompt Engineering with Gemini (2024)
Writing your first prompt
- [Instructor] One of the nice things about Gemini is that there are many sample prompts that you can use. A prompt is a way to have a large language model like Gemini fulfill a task for you. So let's write our first prompt in Gemini. Here on the screen, you can see here I have four different prompts. I'm going to go ahead and click on this landmark one. So I have a sample prompt here, and in the blue, I can actually change this value, but I'm not going to, I want to learn a little bit more about the Buckingham Palace and Big Ben. So I'm going to click enter and run. All right, here we go. So now we've generated a response and I've gotten some directions on how to walk from Buckingham Palace to Big Ben. We have a distance here, an average walking time, and a popular route. That's pretty cool. Now let's say I want to write my own prompt. How would I do that? I can go into the text box down here and write my own prompt. One of the things that I always wonder is, is Toronto warmer than New York? So I'm going to type that in as a prompt. Is Toronto warmer than New York? Hit enter. And here Gemini is going to generate a response for us. Okay, here we go. So Toronto is not warmer than New York, and we have a breakdown here, across summer and some of the other seasonal comparisons. That's pretty cool. So let's add a more specific prompt so we can ask a more specific question. Let's ask, is New York warmer than Toronto in the winter? So here we go. We have a more direct comparison between the temperature of New York City and Toronto based on the winter weather. So in the next chapter, we're going to build on this progress and we're going to use Gemini for our day-to-Day tasks. And the first thing that we're going to do is brainstorm some new ideas.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.