· By Jody in Prompt Engineering —

Give your LLM a not to do list

When telling an LLM what to do, I often find it helpful to tell it what not to do.

Typically the shape of a prompt using this technique is to describe a deliverable that by itself would be fairly generic, but when paired with negative assertions helps the LLM to shape it into something more specific. For example:

I want you to come up with some fitness app ideas.

It must not:
- Be a variant of the top 10.
- Be elitist.
- Be in a saturated market.

So in the above example "fitness app ideas" would be a very generic deliverable, but then telling the LLM what you don't want it to do will make it give a very different response.

This technique is an example of negative constraints, and is a great way to make your LLMs give much more creative responses by removing obvious answers.