Zero-Shot Prompting
Assign a Role
Overview
How can we increase a model’s performance on open-ended tasks?
Role prompting, or persona prompting, assigns a role to the model. Roles can be:
- specific to the query: You are a talented writer. Write me a poem.
- general/social: You are a helpful AI assistant. Write me a poem.
More Role Prompting
To read about a systematic approach to choosing roles, check out RoleLLM.
For more examples of social roles, check out this evaluation of social roles in system prompts.
To read about using more than one role, check out Multi-Persona Self-Collaboration.
Example
References
- RoleLLM: Benchmarking, Eliciting, and Enhancing Role-Playing Abilities of Large Language Models
- Is “A Helpful Assistant” the Best Role for Large Language Models? A Systematic Evaluation of Social Roles in System Prompts
- Unleashing the Emergent Cognitive Synergy in Large Language Models: A Task-Solving Agent through Multi-Persona Self-Collaboration