Skip to content

Negative Prompting and Stating Constraints

How to express what a model must avoid, why positive framing usually works better, and when hard constraints need code.

Editorial team 1 min read

Sometimes you need to tell a model what not to do. How you phrase it matters.

Prefer Positive Framing

"Use plain language a 12-year-old could follow" works better than "Don't use jargon". Positive instructions describe the target; negative ones only fence off one area.

When Negatives Are Needed

Some constraints are naturally negative: don't mention competitors, don't give medical diagnoses, don't include personal data. State them clearly and explain why.

Be Specific

"Don't make promises about delivery dates" is clearer than "be careful about commitments".

Explain the Reason

"Don't quote prices, because they vary by region and the assistant can't see the customer's region" lets the model handle related cases sensibly.

Provide the Alternative

Tell the model what to do instead: "If asked about pricing, explain that it depends on location and link to the pricing page."

Hard Constraints Need Code

For rules that must never be broken — legal disclaimers, prohibited content, data that must not leak — don't rely on prompts alone. Add programmatic checks on outputs.

Test the Edges

Try inputs designed to tempt the model into the prohibited behaviour, and confirm it responds correctly.

More in Prompting

All Prompting guides →
Prompting Guide · 1 min

Anatomy of an Effective Prompt

The parts of a prompt that reliably produce good results, with a template you can adapt for almost any task.

Prompting 1 min read 1 Nov 2025

Prompting Guide · 2 min

Giving Models Context

Why most weak outputs come from missing context, and what background information to include in a prompt.

Prompting 2 min read 31 Oct 2025

Prompting Guide · 1 min

Role Prompting: When It Helps and When It Doesn't

Telling a model to act as an expert or a persona can shape tone and focus — but it isn't a substitute for clear instructions.

Prompting 1 min read 30 Oct 2025