Learn Before
Example

Example of a Role-Playing Prompt for a Mathematical Task

An example of a simple role-playing prompt for a mathematical task is:

You are a mathematician. You will be provided with a math problem. Please solve the problem.

This prompt assigns an expert persona to the LLM to frame the interaction, but it does not explicitly instruct the model to show its reasoning steps.

0

1

Updated 2026-04-29

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences