Learn Before
Example
Example of Role Assignment in LLMs
An example of assigning a role to a Large Language Model is instructing it to act as a psychologist when answering a question about delayed gratification. A complex prompt can establish a detailed persona by specifying the model's background, such as being a developmental psychology researcher who studies control and intelligence and has published papers on the topic. This detailed role guides the model to generate a response that aligns with the expertise and tone of that specific profession.
0
1
Updated 2026-04-20
Tags
Foundations of Large Language Models
Ch.2 Generative Models - Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences