Clear, direct instructions
- What the docs say
- Anthropic's test: show the prompt to a colleague with minimal context. If they would be confused, the model will be too.
- Documented by
- Anthropic
Prompt engineering is writing and testing a model's instructions. The loop, the techniques Anthropic and OpenAI document, and when another fix is better.
Prompt engineering is the practice of writing, testing and revising the instructions you give a language model so its output meets your requirements. OpenAI stresses iteration because outputs are non-deterministic. Anthropic adds a limit: not every failing test is a prompt problem, and a different model can fix latency or cost more easily.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
Write down what a good output is for your case, in terms you can check: format, content, length, refusals.
A small set of real inputs with expected properties. Anthropic links its own guide on defining success criteria and building evaluations.
Change one thing at a time and rerun the same inputs.
OpenAI advises pinning applications to specific model snapshots. Re-run the tests whenever the snapshot changes.
Less effective:
Create an analytics dashboard
More effective:
Create an analytics dashboard. Include as many relevant features and interactions as possible. Go beyond the basics to create a fully-featured implementation.Related: how the standing instruction is set in a system prompt, and what fits in a context window.
Give the prompt to someone who has not seen the task. Note every question they ask and answer it in the prompt.
Pick one property of a good output and test five real inputs against it.
Pin a snapshot where the vendor offers one so a later change is yours, not theirs.
1 questions people ask next, answered from the sources on this page.
For steering a model to a new task, OpenAI's guide says a few input and output examples in the developer message can do the job instead of fine-tuning. It does not claim they match fine-tuning on every task, so test against your own cases.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.