Writing prompts for AI? Ask TRACI

Writing prompts for AI? Ask TRACI

It seems like every other person I meet in 2024 is an expert in prompt engineering, the process of writing an instruction that can be interpreted and understood by a generative AI model. But how many of those people can describe their knowledge and expertise in a way that can be easily remembered and applied?

By RICHARD STONE

People who aren’t very interested in physics often claim that Einstein once said, ‘if you can't explain it simply you don't understand it well enough’. While that might not fully hold water when we are talking spin-statistics theorem, when it comes to writing a prompt for ChatGPT, it’s definitely true.

Fortunately, the good people at StructuredPrompt.com have come up with an excellent way of both describing a well written prompt and remembering exactly what it should contain.

Incidentally, one PR person who is a real expert in prompt writing is Andrew Bruce Smith , who was responsible for introducing me, and thus you, to Structured Prompt in the first place, so a big thank you to him, before you read on.

Say hello to TRACI

Meet TRACI, their neat little acronym that means you won’t ever need to type ‘answer all my emails for me’ into a generative AI ever again:

·?????? Task - The general activity ChatGPT is being asked to perform

·?????? Role - The perspective or persona ChatGPT should adopt in generating the response

·?????? Audience - Who the response is intended for

·?????? Create - The format or medium of the requested output

·?????? Intent - The underlying purpose or goal of the generated text

In addition to including these five basics, it’s worth noting the way that Structured Prompt recommends that you, well… structure your prompt.

They argue that each of the subsections of TRACI should be provided with rules, allowing the GPT to understand exactly what you are asking of it.

For instance, you might write:

Task: Write a 450-600 blog post about Prompt Engineering’s TRACI acronym, highlighting how to use it and pointing out a couple of interesting ways that it works.

Task_rules:

·?????? Avoid technical or marketing jargon

·?????? Include reasons why each interesting facet of TRACI benefits the reader

·?????? Use a practical and worked example

·?????? Don’t use that cliched hack of making the worked example the actual piece you are writing. You might think you are being funny and meta when you do that, but everyone else does it as well.

For the record, I didn’t get ChatGPT to write this article and I won’t be including a version of this piece, written by Chat GPT, as an addendum so you can see the difference between the two. Why? Because its not 2022, that’s why.

Engineering prompts

One of the interesting points here is that Prompt Engineering chooses to write the rules as if they were fake code, by including underscores between the words. They also put their instructions in bullet point format.

At first, I genuinely thought they were doing this to look cool. Given some further thought though, the underscore is itself a token that makes up part of the prompt you are submitting to the AI. So, if you use an underscore to provide clarity in your writing, you are likely to get a clearer prompt as a result.

Similarly, the bullet point itself, which is to say the little dot at the start of your sentence, represents a distinct token. In fact, in some cases, the space between the little dot in the bullet point and the first letter of your sentence is an entirely separate token itself.

And, if you submit two different strings of tokens to a generative AI, you will get two different sets of results.

I’m uncertain, and don’t have enough data to prove, whether the Structured Prompt approach works better on a technical level by providing enhanced clarity, but it’s clear that, by inputting a different token string, it will work differently.

Engineering yourself

However, I don’t really think it’s about engineering ChatGPT, or your preferred generative AI at all. Having worked with hundreds of copywriters in my career, and made a million and one copywriting mistakes myself, I think it’s about engineering you – the prompt writer.

The thing that TRACI reminds me of most, is the advice we give to brand new account executives when they join Stone Junction and start work on their first piece of content. We tell them to know what the client wants to achieve, write with the reader in mind, and know what you want the reader to do after they have read the piece.

With that in mind, it's no wonder that everyone is an expert in prompt engineering. It turns out that a good prompt uses all the same rules as a good piece of copy.

Andrew Bruce Smith

AI PR & comms technologist. Focus areas: AI, data, measurement, analytics. Consultant and trainer [3000+ organisations helped]

8 个月

Richard Stone Thanks for the shout-out. As a measure of how quickly things move, worth looking at Claude’s new prompt creation assistant and evaluation tool: https://techcrunch.com/2024/07/09/anthropics-claude-adds-a-prompt-playground-to-quickly-improve-your-ai-apps/?utm_source=pocket_shared

要查看或添加评论,请登录

Richard Stone的更多文章

  • International PR: Reaching the United Kingdom

    International PR: Reaching the United Kingdom

    Doing PR in a new region is a lot like learning to drive in a new country. Some places use the same side of the road as…

  • Is AI in marketing a sword or a shield?

    Is AI in marketing a sword or a shield?

    In their seminal book, the Fall of Advertising and the Rise of PR, Al Ries and Laura Ries famously describe PR as a…

    4 条评论
  • Avoiding the fat finger slip of AI

    Avoiding the fat finger slip of AI

    Most of us have experienced that awkward moment of a fat finger slip. In most cases the consequences are minimal, like…

    2 条评论
  • Why PRs should cling to newspapers and magazines

    Why PRs should cling to newspapers and magazines

    I’ve just started reading Anthony Burgess’ A Clockwork Orange for the first time. I know right! Most people read it…

    3 条评论
  • Lobbying is either OK, or not OK

    Lobbying is either OK, or not OK

    Before you go ahead and read this post, I’d like you to know a couple of things about me – just for clarity. By Richard…

    4 条评论
  • Does a new kettle save energy?

    Does a new kettle save energy?

    Last week the UK’s outgoing Prime Minister, Boris Johnson, went viral when he suggested that people in Britain should…

  • There’s a recession coming, strap yourself in… for growth?

    There’s a recession coming, strap yourself in… for growth?

    The likelihood of an economic recession on both sides of the Atlantic has increased substantially in 2022, with most…

    10 条评论
  • Meet EaaS, or Espionage as a Service

    Meet EaaS, or Espionage as a Service

    One of the most common boundaries I encounter when consulting with clients is the idea that they are in a fixed…

  • The difference between passion and aggression

    The difference between passion and aggression

    This weekend Antonio Conte and Thomas Tuchel, the managers of Tottenham Hotspur and Chelsea respectively clashed on a…

    3 条评论
  • Why Tech Businesses Need Instagram

    Why Tech Businesses Need Instagram

    Ever heard the phrase ‘a picture is worth a thousand words’? Of course you have, it’s a staple argument for any…

    1 条评论

社区洞察

其他会员也浏览了