Prompt engineering have really become the talk of the town lately since the release of ChatGPTinto the wild. I believe it’s an essential skill to have some experience in, but to master it takes quite a lot of effort and training!
What is Prompt Engineering?
Essentially it is the ability to be able to get the AI to do your bidding. Many people, when they first try out ChatGPT or any other LLM (Large Language Model) try to make write a poem, for example. One might try telling it:
“Write a poem about spring” and get a response similar to this:
In the realm of rebirth, where nature takes its wing, A symphony of colors, behold the arrival of spring. From wintry slumber, the Earth awakes anew, As blossoms unfold, painting the world with a vibrant hue.
Oh, sweet spring, you emerge with grace and might, Melting the frost, bringing warmth and light. The sunbeams dance upon the emerald land, Caressing each petal with a tender hand.* […]
While this is a really nice poem, it wasn’t exactly what we where aiming for. We could try something more advanced, like:
“Write a poem about spring in the style of Shakespear. Make sure to incorporate things such as butterflies, smell of flowers and deers drinking from a brook.”
Now we get a poem in a completely different style, including the elements we asked for:
[..]
Behold, the butterflies, with painted wings, That flutter ‘midst the flowers as nature sings. Their delicate dance, a sight to adore, Each hue and pattern, wonders to explore.
The scent of blossoms fills the perfumed air, A fragrant feast for senses, rich and rare. From dainty violets to roses grand, Their aromatic charm, enchanting the land.
But lo! A scene of pastoral delight, A brook where deer do quench their thirst in sight. With graceful strides, they tread on dappled shore, Their mirrored image in the waters’ lore.
[…]
Perfect! But now we want something shorter, like a haiku!
“Write a haiku about spring”
Blossoms unfurling, Nature’s palette comes alive, Spring whispers its song.
So, in this way, depending on what we ask for we get completely different answers. The AI doesn’t judge (it’s the filter set up by the owner of the AI, in this case OpenAI) and will generally give you exactly what you ask for. If you’re not satisfied with the answer, it’s more often than not a problem of communication and phrasing.
What about prompt engineering in image generators?
The same goes for image generators, like Midjourney. Let’s say I want an image of a fox dancing in the forest. By specifying that I want the image to be inspired by Disney movies and that it’ll be happy looking I can add a few words, just:
Fox dancing in the forest
A fox dancing in the forest. Atmospheric lighting, disney style cartoon, happy.
Two very different results are created by just adding a few words. The LLMs like ChatGPT are, one could argue, more sensitive to wordings since the output are just that: Words.
Words with meaning
If you’ve tried to get ChatGPT to write an article, paper for school, or generally just to try to get out of doing some work. Then, you might’ve come to the conclusion that it’s just not that easy to get it to write what you want, in the style that you want. Where ChatpGPT really shines is it’s ability to come up with suggestions and brainstorm ideas when you’re stuck on a subject. Next time you meet the dreaded white paper, ask ChatGPT to write an outline for an article on the subject you want to write about. Be specific if you can, or it will just give you a general outline. Once that is done, ask it to research 5-10 different interesting pieces of information about the subject.
It might be better to talk to Bing when researching actual facts, since it has access to the internet and doesn’t lie through its teeth to please the prompter.
My own experience
One really big downside to using AI to write for you is that, unless you’re just putting out a general piece that you have no interest in, it’s something you’ll want to use in moderation. Normally when I write articles, I start off by doing some research on the subject if I’m not at all familiar with it. Get a general idea of what it’s about and plot down some bullet points. Then, I try to structure the article in the way I want it to unfold to the reader. Once there, I’m going back to the information I’ve collected and write a first draft with bullet points and longer sentences.
The absolute best way to use ChatGPT, for me, is to use it some sort of intern. An errand boy that can fetch me interesting articles and help me brainstorm ideas when I’m stuck.
The best part is that ChatGPT never get tired of answering stupid questions! It loves comming up with 10 more examples of sub-menus for your article!
If you want to read more about why prompt engineering is here to stay, check out this post!
Leave a Reply