3 Prompting skills

A image generation website. On the left is a box which says ‘Enter your prompt’. The prompt says: Create a cute girl with blue hair and pink headphones in a street background in an anime style. On the right is the picture of the girl.

Prompting is the term used when we control a Generative AI by giving it instructions – the prompts to undertake a task. Prompts can be as short as a single sentence or can run to several pages of detailed instructions.

Prompting a GenAI tool is different from the types of searches you may be used to doing in an internet search engine. In this section, we look at how to prompt well using a single prompt, and whether a shorter or longer prompt is useful.

Watch this video, in which Harry Clark, from Mishcon de Reya, details how prompting ChatGPT is different to using a search engine.

Download this video clip.Video player: course_2_workshop_video_clip_1.mp4
Copy this transcript to the clipboard
Print this transcript
Show transcript|Hide transcript
 
Interactive feature not available in single page view (see it in standard view).

Watch the video below in which Liz Hardie explores the difference between a simple one sentence prompt (prompt 1), and one which contains more direction for the GenAI to follow (prompt 2).

Download this video clip.Video player: course_2_vid1_prompting.mp4
Copy this transcript to the clipboard
Print this transcript
Show transcript|Hide transcript
 
Interactive feature not available in single page view (see it in standard view).

Reading a book icon Further reading

If you want to read the prompts in order to try it out yourself, please go to a copy of the prompts and poems [Tip: hold Ctrl and click a link to open it in a new tab. (Hide tip)] .

 

The first prompt was simplistic and did not contain any specific guidance on content. The second prompt was more nuanced and included much more detail about the information which should be included in the poem.

Activity icon Try an LLM

Timing: Allow 5 minutes

Why don’t you try it? Open an LLM – at the time of writing ChatGPT, Gemini, Claude and Llama all offer free versions.

Write a prompt asking for a poem, but make sure that you choose the topic, length and style of the poem. Include some additional guidance about the way the poem should develop, the audience, or what not to include. (Don’t give the GenAI tool any personal or confidential information.)

Record your prompt in the box below (you will need to refer back to it later in the course).

What did you think of the poem it produced?

To use this interactive functionality a free OU account is required. Sign in or register.
Interactive feature not available in single page view (see it in standard view).

Discussion

We decided to ask the GenAI tool to write a similar poem to prompt 2 above, but in a different style. As we had already given the tool the detailed prompt, we asked it a third prompt: Do the same but the audience are music students learning about song writing. The poem should be in the style of a love ballad.

Response: Chasing Love at Full Speed

Like a train on the tracks, you pulled me near,

A rush in my heart, the way you appear.

Through the city lights, we glide and we race,

Every moment with you, I can't keep pace.

 

Your eyes are the engine, driving me wild,

In the fast lane of love, I’m your faithful child.

Like galloping horses, we soar and we glide,

In the rhythm of love, we’re lost in the ride.

 

In the speed of your touch, I can feel every beat,

Like a car in the night, racing down every street.

With you, time’s a blur, it’s just you and I,

Like the wind in my hair, we’re soaring so high.

 

We’re a song that’s unfolding, no need for a plan,

A melody flowing, just you and your man.

In this fast world, I’ll always chase you down,

Together, in love, we’ll always wear the crown.

The more specific the task you want completed, the more information your prompt needs to contain. That’s very similar to human exchanges – it is a little like asking for information from an assistant.

An illustration of an inefficient conversation between a manager and their assistant.
An inefficient office exchange

The initial request was under-specified – not all the required information was given, and there was no indication of how the result was to be used. With a little thought, the task could have been described much more specifically.

An illustration of the ideal prompt from manager to assistant.
The ideal prompt

So, better prompts give better answers, which leaves us with the question “What does a better prompt look like”?

In most cases, you want to be specific in the language you use for the request, and you want to supply as much relevant information as possible about the task you have set the AI. For example, you need to include the audience that will receive it and the approach you want the GenAI to follow (as in prompt 2) and style of the output you want the GenAI to produce (as in prompt 3, which is in the Activity above, Try an LLM, in the discussion section).

We’ll now consider ways in which we can supply that guidance and highlight some techniques that have been widely reported to help avoid GenAI’s worst mis-steps.

2 Using Generative AI – when is artificial intelligence a good choice?

Session 2: Single prompts, conversational prompts and personas – 90 minutes