You are signed in. Close

You are signed out. Close

Thank you. Your subscription has started. Close

Thank you. You will get an email when a new comic comes out. Close

Almost done. Check your inbox and press the button in our email to confirm. Close

We could not check that you are a person. Please try again. Close

We could not confirm your payment. If you paid, use the link "Sign in" at the bottom of the page. Close

Something went wrong on our side. Please try again in a moment. Close

Prompt engineering: why the same question gets a better answer when you ask it well

Why a vague prompt gets a plain answer from an AI chatbot

Ask an AI chatbot for a message about your event, and it sounds lovely. It could also be about anyone's event, anywhere. The model is not lazy. It does exactly what it was built to do.

  1. 1 You lead a small choir in your neighbourhood, the Tuesday Choir. Its first concert is next Saturday. You open an AI chatbot and ask it for a message to send to your neighbours.

    You lead a small choir in your neighbourhood, the Tuesday Choir. Its first concert is next Saturday. You open an AI chatbot and ask it for a message to send to your neighbours.

  2. 2 The answer comes in a second, and it sounds nice. But it has no day, no place and no price. And "our talented singers" could be the singers of any choir in the world.

    The answer comes in a second, and it sounds nice. But it has no day, no place and no price. And "our talented singers" could be the singers of any choir in the world.

  3. 3 The model behind the chatbot writes the words that most often follow a prompt like yours. It learned them in training, from a huge amount of text. A great many concert messages in that text promise "an unforgettable evening".

    The model behind the chatbot writes the words that most often follow a prompt like yours. It learned them in training, from a huge amount of text. A great many concert messages in that text promise "an unforgettable evening".

  4. 4 Your one line fits the concerts of thousands of choirs, big and small, near and far. So the likely words are the ones that fit all of them at once. That is why the answer could be anyone's.

    Your one line fits the concerts of thousands of choirs, big and small, near and far. So the likely words are the ones that fit all of them at once. That is why the answer could be anyone's.

  5. 5 The model gets only the text you send, and that text is called the prompt. Saturday at 6 pm, the library hall, free entry: all of it is in your head. None of it is in the prompt.

    The model gets only the text you send, and that text is called the prompt. Saturday at 6 pm, the library hall, free entry: all of it is in your head. None of it is in the prompt.

  6. 6 The plain answer, then, does not come from a bad model. It is a good guess for a prompt that says almost nothing. This time, you tell it more.

    The plain answer, then, does not come from a bad model. It is a good guess for a prompt that says almost nothing. This time, you tell it more.

  7. Go further

    One name for what you are about to do.

    One name for what you are about to do.

Next episode Context in an AI prompt: why a few details change the whole answer

Share this comic

More comics