100

Role prompting?

 title: 'Figure 1. A visualization of chain of thought prompting on the left versus. Tree of Thoughts prompting on the right'

Role prompting is a prompt engineering technique that involves assigning a specific role to the generative AI model[1]. This can help the model to generate more relevant and informative output, as the model can craft its responses to the specific role that it has been assigned[1]. Defining a role perspective for an AI model gives it a blueprint of the tone, style, and focused expertise you’re looking for to improve the quality, relevance, and effectiveness of your output[1].

For example, you could role prompt a gen AI model to be a book editor, a kindergarten teacher, or a motivational speaker[1]. Once the model has been assigned a role, you can then give it prompts that are specific to that role[1]. When you would change the role to a teacher of geography, you would notice that you will receive a different response[1].

Space: LLM Prompting Guides From Google, Anthropic and OpenAI

Related Content From The Pandipedia