Skip to content
mentoor

Topic 3 of 4 · 3 min read

Constraints that improve the answer

Goal: Add the length, audience, source and do-not constraints a request needs, and drop the ones that only add noise.

Constraints are the limits you set on the answer: how long, for whom, from which sources, and what to leave out. Good constraints remove the choices you would otherwise have to fix by hand. Too many, or vague ones, make the answer worse.

Check yourself · 1 of 3

Which length constraint is the model most likely to follow well?

Choose one answer

Why it matters

Without limits, a model picks safe defaults: medium length, neutral tone, broad coverage. That is rarely what a real reader needs. One or two well-chosen constraints usually do more than a long list of rules.

Four constraints that earn their place

  1. Length. Use a number the model can follow: "under 150 words", "5 bullet points", "one paragraph". "Short" and "brief" mean different things to different people. Models also count words only roughly, so treat the number as a target and check the result.
  2. Audience and tone. Say who will read it and how it should sound: "for parents of new pupils, warm and simple", "for our finance director, formal and direct". This sets the vocabulary, the level of detail and the tone at once.
  3. Sources. Say what the answer should be based on: "use only the meeting notes below", "do not add facts that are not in the text". This is your best defence against invented details, which are hard to spot in confident writing.
  4. Do-nots, stated with the reason or the alternative. "Do not use jargon" works better as "use everyday words; the reader is new to the topic". A reason helps the model apply the rule to cases you did not list. A positive instruction tells it what to do instead.

Before and after

Before: Write a short, professional, engaging, clear, concise, friendly but formal update about the office move. Don't be boring.

Seven adjectives, two of them in conflict ("friendly but formal"), and no number. The model will average them.

After: Write an update about the office move for all 40 staff. Keep it under 120 words. Use only the facts in the notes below; if the parking details are missing, say they will follow. Friendly, plain tone.

When constraints hurt

  • Conflicting rules. "Detailed but under 50 words" cannot both be met. The model will break one of them, and you will not know which.
  • Rules for problems you do not have. Every extra rule competes for attention. Add a constraint when the last answer went wrong, not "just in case".
  • Vague limits. "Not too long" and "professional" give the model nothing concrete.

What goes wrong

People pile on adjectives instead of numbers, forget to name the source so the model fills gaps with plausible inventions, or write a list of "don'ts" without saying what to do instead.

Examples

Source constraint stops invention

Before: Write a summary of the project for the newsletter.

After: Write a 100-word summary of the project for the staff newsletter, using only the facts in the update below. If something is unclear, leave it out rather than guess.

Without the source rule, the model may add a launch date or a budget that sounds right but appears nowhere in your notes.

Do-not with an alternative

Before: Don't use technical terms.

After: Explain it with everyday words, because the readers are customers who have never used the software. If you must use a term such as "backup", explain it in a few words.

The reason and the alternative tell the model how to handle words you did not list.

Key points

  • Four constraints usually matter most: length, audience and tone, sources, and do-nots.
  • Use numbers for length ("under 120 words"), not words like "short".
  • Naming the source ("use only the notes below") is the best guard against invented details.
  • State a do-not with its reason or the alternative, so the model can generalise.
  • Conflicting or vague constraints make answers worse; add a rule when a real answer went wrong.

Common mistakes

  • Using adjectives such as "short" or "professional" instead of concrete limits.
  • Setting constraints that conflict, such as "detailed" and "under 50 words".
  • Not naming the source, so the model fills gaps with plausible inventions.
  • Adding rules "just in case" until the important ones get lost.

Check yourself · 2 of 3

You paste meeting notes and ask for a summary. Which constraint best stops the model from adding details that are not in the notes?

Choose one answer

Check yourself · 3 of 3

A prompt asks for "a detailed explanation in under 40 words." What is the problem?

Choose one answer

Practice items, not counted towards your mastery.

Start here