Matteo
Vincenti
Menu

“Act as an expert”: what a role prompt changes

What does a role add to a prompt? Compare persona, message roles and explicit criteria with four complete prompts for the same caching decision.

A card with criteria to check stands before a monitor showing a speech bubble and a role badge.

“Act as an expert in distributed systems” can precede a sound recommendation, an unnecessarily complicated answer, or a beautifully explained mistake. When choosing a caching strategy, I want to know what happens when an update is lost. The architectural vocabulary comes later.

A role can guide tone, perspective and which aspects of a problem receive attention. To judge its contribution, we need to separate it from the information and criteria we add alongside it. I’ll use a concrete case and four comparable prompts to make that distinction useful.

What are we asking for when we assign a persona?

A persona in a prompt describes a perspective to adopt: reviewer, teacher, operations lead, database expert. It can be a useful shortcut. “Explain the plan to the manager who must approve the maintenance window” says something about the audience and the decision the answer should support.

“You are the world’s leading expert” leaves almost everything open: the problem, the available evidence and the acceptable trade-offs. Adding prestige to the character contributes little to the specification.

Claude’s documentation presents roles as a way to focus behavior and tone. The same guide recommends making context and the expected result explicit. Those are separate choices worth distinguishing when evaluating a prompt. Claude prompting guide.

The value of the role also depends on the task. It may help set the register for explaining a migration to a board. To decide whether a cache design meets a freshness requirement, the evaluation must reach the cases that could break it.

Tokens and vector space, without an “expert zone”

Text is split into tokens: units that may be words, word fragments or other segments. The split depends on the tokenizer, so the same sentence need not have the same token count across models. Hugging Face tokenization documentation.

An embedding associates a token with a vector: a sequence of numbers identifying a point in a mathematical space. In a Transformer, attention processes representations in context. The resulting representations contribute to the probabilities of subsequent tokens. Adding a role changes the input from which the response is generated. Attention Is All You Need, sections 3.2 and 3.4.

The metaphor “the prompt moves the model into an expert region” makes a much more concrete claim. It suggests a department of expertise that the right words can unlock. The cited sources provide no map of Claude’s or ChatGPT’s internal representations, nor a measure linking distance in such a space to accuracy.

For this task, a more useful idea is sufficient: the words used to frame a request change the conditions under which the answer is generated. A more specialized answer still has to work for the problem.

A role in the text and a message role

In an API, role also refers to something else: the source of a message and the priority of its instructions.

In OpenAI’s APIs, a developer message takes precedence over a user message. Claude’s Messages API documents a system parameter for system instructions. These are request properties. “Act as an expert” is instruction content. Typing “SYSTEM:” into an ordinary chat box does not set those metadata fields. OpenAI message roles, Claude Messages API.

Product personalization is another separate control. ChatGPT describes its personalities in terms of style and tone, without giving them additional capabilities. ChatGPT personalization.

For a prompt comparison, keep both versions in the same message position: moving one into system instructions while leaving the other as a user request also changes priority.

Why the evidence on role prompting can look contradictory

Zheng and colleagues’ EMNLP 2024 study found no systematic improvement from adding personas to prompts for factual questions. It examined models including FLAN-T5, Llama 3, Mistral and Qwen 2.5, rather than today’s Claude and ChatGPT products. EMNLP study.

A 2026 preprint on open-ended professional answers reports different effects on specialist depth and clarity. Its questions are synthetic and its evaluator is an LLM; its findings belong to that evaluation setup. Xiao and colleagues, Persona Prompting.

Getting a factual answer right and preferring a richer explanation are different objectives. Until we choose the property to improve, two assessments can appear to conflict while measuring different things.

There is also a simpler mistake. We compare “act as an expert” with a new prompt containing the problem, the mistakes to avoid and the expected format. If the second works better, too many variables changed to assign credit.

Anthropic’s official Prompting 101 demonstration is useful to read in that light: it progressively adds a role, context and operational instructions. It shows how to develop a request. Isolating the role’s contribution calls for a different comparison.

The case: how long can a cached price remain stale?

Take a catalog whose prices are stored in a database. A cache holds copies for catalog pages; checkout reads the price from the database again. The catalog requirement allows at most 30 seconds of staleness after a change.

A TTL sets how long a cache entry remains valid. Change events could invalidate it sooner, but in this case they can arrive late or disappear. A database read can also be slow or fail.

“Use event-driven invalidation with a 30-second TTL” sounds reasonable. Now consider this sequence:

  1. At second 0, a read obtains the old price.
  2. At second 1, the database records the new price.
  3. At second 5, the first read completes and caches the old price with a 30-second TTL.
  4. If the event is lost, that copy may remain available until second 35.

That is 34 seconds after the change. The TTL has behaved as configured; the strategy has exceeded the freshness limit.

This is where I want the answer to earn its recommendation. It should notice that the value’s age when it enters the cache matters too. It might propose versions, controls on concurrent reads, or expiry tied to the data’s validity, but it should explain which sequence they prevent. If the design does not yet establish the bound, it should identify the unresolved step.

There is also a product decision: when the cache has expired and the database is unavailable, the price might still be correct, but its freshness cannot be guaranteed without another check. Keeping the required limit may mean temporarily not showing a price. Displaying it anyway accepts the risk of exceeding those 30 seconds.

The timeline gives us a check before we read a model’s answer. This is the principle behind verifying an agent’s claims: the evidence must address the conclusion we care about.

Four prompts that separate the role from the criteria

The following is a protocol to run on your own model, not a measured comparison. The task and facts stay the same. Only the role sentence and the explicit criteria change.

Four prompts that separate the role from the criteria
VariantPersonaExplicit criteria
ANoneNo
BDistributed systems expertNo
CNoneYes
DDistributed systems expertYes

A — The task

txt
Choose a caching strategy for the prices in a product catalog.
The database is the authoritative source. A catalog price may remain stale
for at most 30 seconds after a change in the database. At checkout,
the price is read from the database again. The cache supports a TTL.
Change events may be delayed or lost.
A database read may be slow or fail.
No traffic, latency or update-frequency measurements are available.

Propose a strategy and explain your choice in no more than 250 words.

B — The same task, with a role

txt
Act as an expert in distributed systems.

Choose a caching strategy for the prices in a product catalog.
The database is the authoritative source. A catalog price may remain stale
for at most 30 seconds after a change in the database. At checkout,
the price is read from the database again. The cache supports a TTL.
Change events may be delayed or lost.
A database read may be slow or fail.
No traffic, latency or update-frequency measurements are available.

Propose a strategy and explain your choice in no more than 250 words.

C — The task and the criteria

txt
Choose a caching strategy for the prices in a product catalog.
The database is the authoritative source. A catalog price may remain stale
for at most 30 seconds after a change in the database. At checkout,
the price is read from the database again. The cache supports a TTL.
Change events may be delayed or lost.
A database read may be slow or fail.
No traffic, latency or update-frequency measurements are available.

Propose a strategy and explain your choice in no more than 250 words.

Evaluation criteria:
- Explain what happens when a change event is lost.
- Consider whether a read started before a change can populate
  the cache after that change and exceed the 30-second limit.
- Define what to display when the cache has expired and the database is unavailable.
- Separate properties established by the requirements from assumptions to check.

D — The task, criteria and role

txt
Act as an expert in distributed systems.

Choose a caching strategy for the prices in a product catalog.
The database is the authoritative source. A catalog price may remain stale
for at most 30 seconds after a change in the database. At checkout,
the price is read from the database again. The cache supports a TTL.
Change events may be delayed or lost.
A database read may be slow or fail.
No traffic, latency or update-frequency measurements are available.

Propose a strategy and explain your choice in no more than 250 words.

Evaluation criteria:
- Explain what happens when a change event is lost.
- Consider whether a read started before a change can populate
  the cache after that change and exceed the 30-second limit.
- Define what to display when the cache has expired and the database is unavailable.
- Separate properties established by the requirements from assumptions to check.

The criteria point to issues already implied by the facts. They tell the model how we will assess its proposal. That is precisely the variable we want to observe.

How to assess the result

I set the checks before running the prompts. For each constraint, I distinguish three outcomes: met, unresolved and violated. The strategy must handle a lost event and prevent the delayed-read sequence. Acknowledging an open problem counts as unresolved: better than a false promise, but still an incomplete proposal. For a database outage, it must make the choice between unavailability and a price whose freshness cannot be guaranteed explicit.

I then look for invented system properties, volumes or performance figures, and ask whether a colleague could follow the decision. I keep these judgments separate: clear prose can describe a faulty design, and a correct design can be difficult to use.

A starting point is three independent runs per variant, twelve in total, using fresh conversations and shuffling the order. That is a small first pass in which every answer can be inspected. If the differences are uncertain, increase the sample before adopting a standard formulation.

Record the available model and version, date, interface, settings and additional instructions. Keep tools, message position and personalization constant. An app-based test also evaluates that surrounding context; for a controlled API comparison, record the complete request.

Show the answers to the evaluator without the A, B, C and D labels where possible. A working sheet can use these columns:

txt
run | variant | lost event | delayed read | unavailable source
    | unsupported assumptions | clarity | passage supporting the judgment

Comparing A with B shows what the role adds to the base task. Comparing C with D shows whether it adds anything after the criteria are explicit. A against D alone would only show an effect from the combined package.

That is the comparison I would use to decide whether to retain “act as an expert” in a working prompt. If it helps the intended reader understand, it already has a specific purpose. If the answer is meant to support a technical decision, I also want it to survive the case that could prove it wrong.

Share this article

Have a question or a comment about this article?

Message me on LinkedIn
All articles