Lesson 9

81. Prompts can be in the form of a question, and are categorized into four categories: zero-shot, one-shot, few-shot, and role prompts.
82. Zero-shot prompts do not contain any context or examples to assist the model
83. For example, the prompt “What’s the capital of France?” does not provide any examples of what a capital is.
84. Clearly, that is not too important for this example.
85. But for more specific and technical prompts, an example would help refine the scope of the response from Gemini.
86. One-shot prompts, however, provide one example to the model for context.
87. Here, we ask for the capital of France again, but we provide Italy and Rome as an example.
88. And few-shot prompts provide at least two examples to the model for context.
89. Here, our prompt is updated to also include Japan and Tokyo in our examples.
90. And then, there are role prompts which require a frame of reference for the model to work from as it answers the questions.
To be continued…lessonn10

image