Skip to the workspace
Pebellslearn by building
Introduction  ›  Capstone Project

Prompt Engineering — Design, Test, Revise

What is Prompt Engineering? 12 minPrompt engineering is designing a prompt, testing it on real examples, and revising it until the results are reliably good.

prompt engineering / Prompt Engineering — Design, Test, Revise

Explore each scene at your own pace.

01 · The rule

The rule

Prompt Engineering — Design, Test, Revise

The four-part triage prompt worked on the helmet email, so the owner switched it on for the whole inbox. By lunchtime it had filed "please fix my wheel and refund the broken bell" as repair and a spam newsletter as order. One good result had felt like proof. It was a sample of one.

The rule

Prompt engineering is design, test, revise — measured on real examples.

  • Design — write a prompt with a clear purpose and all four parts.
  • Test — run it on a set of realistic inputs where you already know the right answer.
  • Revise — study the failures, change one thing, and test again.

The word engineering matters. A builder does not declare a bridge safe because one car crossed it. A prompt is judged the same way: by how often it succeeds across varied cases, including awkward ones.

A small test set for the triage prompt might look like this:

Email                                               Expected
"My gears click on every hill."                     repair
"Where is order 4471?"                              order
"Please fix my wheel and refund the broken bell."   refund
"Do you have parking for customers?"                other

Twenty or thirty such rows, chosen to include the tricky cases, tell you more than any amount of rereading your own prompt.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.