Cyber Monday Sale30% OFFApplied automatically. Ends Fri Dec 4.

Claim nowClaim nowApplied automatically. Ends Fri Dec 4.New

The Google AI Studio Specialization. Build 12 real apps, no code needed.

Enroll nowEnroll now

Role Prompting

Last updated on November 12, 2024

Role Prompting is a technique in which the user assigns the model a role or persona to improve performance. For example, a user might ask the model to solve a math problem as a math teacher, or to write a poem as a poet.

Footnotes

  1. Zheng, M., Pei, J., & Jurgens, D. (2023). Is “A Helpful Assistant” the Best Role for Large Language Models? A Systematic Evaluation of Social Roles in System Prompts. https://arxiv.org/abs/2311.10054 ↩