Lesson 10.
91. In our example, we state “I want you to act as a business professor. I’ll give you a term, and you will correctly explain its
92. meaning. Make sure your answers are always right. What is ROI? “ For Sasha’s needs, using role prompts might be the best solution. She can define
93. what is required and in what context. This means that the LLM will have a clear point of reference when supplying an answer. Now that you’ve
94. seen the types of prompts you can create, let’s explore the two elements of a prompt: the preamble and the input. The preamble refers to the
95. introductory text you provide to give the model context and instructions before your main question or request. Think of it as setting the stage for the
96. LLM to better understand what you want. It can include the context for the task, the task itself, and some examples to guide the model. The
97. input is the central request you're making to the LLM. It’s what the instruction or task will act upon, for example “Comment: I don’t know what
98. to think about the video. The review is:” Based on the preamble, Gemini reviews the input and suggests if the review is positive, neutral, or negative.
100. It is worth noting that not all the components are required for a prompt, and the format can change depending on the task at hand.
To be continued…lesson 11

image