Example

Example of a Complete Role-Playing Prompt

A role-playing prompt for an LLM combines a persona definition with a user query to elicit a specialized response. For example, a user can instruct the model to adopt the persona of a developmental psychologist who is an expert on delayed gratification, citing their specific research background, publications, and experiments. Following this detailed persona setup, the user can then ask a targeted question relevant to that persona, such as, 'Please explain what delayed gratification is?'

Image 0

0

1

Updated 2026-05-02

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences