Transform Your AI Text Prompts into Masterpieces

Patrick Devaney
Jan 31, 2023
Updated • Jan 31, 2023
Misc
|
1

It really feels like things are moving incredibly fast at the moment. AI is the big buzzword on the internet and over the last twelve months we’ve seen a multitude of AI products grabbing the world’s attention that can create images, videos, 3D models, text, and even music from simple text prompts. Across all of these mediums we’ve a lot of high-quality creative content shared on the internet at the same time as we’ve seen lots of rubbish and no doubt created our fair share of crap too. The secret sauce here is the text prompts themselves. The prompts you put into these various machines will dictate the quality of the outputs you get.

Prompt Engineering
Is this really what you had in mind?

Essentially then, we are living in an age or at least moving into one at quite some speed where you can create visual and even audio masterpieces simply based on the quality of the text prompt you can put into these machines. In this context then, it is probably worth your while learning about the dynamics behind these types of tools, what makes a good text prompt and how to engineer good text prompts yourself. And yes, by the way, that is what they are calling it. Prompt Engineering.

Prompt Engineering How-to Guide

AI prompt engineering refers to the use of prompts to train and direct artificial intelligence models to generate desired outcomes such as text, audio, images, or videos. They can work across the broad variety of generative AI tech we've seen come online in recent years, such as ChatGPT and DALL-E 2. Prompts are versatile too and can range from single words to entire statements. They can even be written as code. They can be given as questions or as statements and can be written out in simple sentence form or even large complex paragraphs with instructions across different formatting types. Depending on how far you want to go with your prompts you can even import csv data filled with data that will train the model toward your outputting your desired results.

The task itself then is the process of crafting these prompts as precisely as possible so as to exert as much control over the models as possible to ensure the output matches your expectations as closely as possible. If you can master the process, you can have these new types of tools create stunning works of art for you across a variety of mediums.

Text-to-image prompts

For images, you can use the following tools for using prompts to create art:

DALL.E

DALL.E Mini

DreamStudio.AI

Midjourney

CLIP

RuDALL.E

According to Re-thought there are certain Prompt Basics that you need to take into account. Prompts should be at least 3-7 words long, should include multiple adjectives, include the name of an artist to emulate, the style of painting you’d like to see recreated, types of computer graphics such as Unreal Engine or Ray Tracing, the quality the image should be, and finally, it should avoid banned words. So let’s give this a try using DALL-E:

Text prompt = A beautiful beach with coconut palm trees and fine white sand and clear aqua water at sunset in a Dali-style cubist form in 4k

Other key tips given include using abstract words like hope or dream for more surprises and concrete words like beach and trees to more specifically get what you are looking for. We can mix that first prompt up then by inputting more abstract words.

Text prompt = A beach that makes you feel happy because of the hopeful light coming from beyond the horizon as a romantic Picasso-style image in hd

Text generators

We're going to use ChatGPT for this section of our guide. Tech Briefly has put together another guide to writing good prompts and includes core components of good prompts. These are:

  • Instructions
  • Question
  • Input data
  • Examples

The guide says that properly blending these together will ensure greater success rates when using these types of tools. It is also necessary to provide as much specific and descriptive information as possible on the subject you are looking to cover as well as much information about what you are trying to create.

Using these instructions then could see us trying to get ChatGPT to help us synthesize some information on a particular subject, for example, to help us prepare for a test or to help us prepare for a project. This could look something like this:

“Write about bats”

prompt engineering text 1

The text output offers a fairly vague overview over what bats are but it doesn’t have nearly as much useful information or context as say Wikipedia:

prompt engineering text 2

This means that depending on what you want from the tool, you will have to go into more detail in order to fine-tune the output you will get from the tool. In this sense then you could take information from the original answer you got from the tool, or you could maybe bring in some context from outside research sources such as Wikipedia. So for example:

“Tell me about the nocturnal habits and echolocation abilities of bats”

“What is the difference between a fruit-eating megabat and an echo-locating microbat?”

prompt engineering text 4

Of course another way to do it is to get the tool to do the reading for you by copying and pasting the text in from the original source and asking it to break it down and summarise it for you.

-

To conclude then, this quick guide to prompt engineering has introduced you to basic concepts that you can use to craft prompts that will give the AI tool something to work with. There are a lot more dynamics you can introduce into your prompts to exert greater control over the tools output, but we’d need a series of these articles to go into them all. It is highly likely prompt engineering will become a new formal education subject too. In the meantime, however, I just want to try something:

“Write me a 1,000 word guide to prompt engineering”

Summary
How to write better AI text prompts
Article Name
How to write better AI text prompts
Description
With AI tools able to do more and more increasingly impressive feats off the back of simple text prompts, isn't time you thought about how to write better prompts?
Author
Publisher
Ghacks Technology News
Logo
Advertisement

Tutorials & Tips


Previous Post: «
Next Post: «

Comments

  1. Seeprime said on September 8, 2023 at 4:12 pm
    Reply

    Missing from the “story”: Ukraine’s agreement to never use Starlink for military purposes. This is why.

    Ghacks quality is AI driven and very poor these days since AI is really artificial stupidity.

    1. Karl said on September 12, 2023 at 9:10 pm
      Reply

      “Elon Musk biographer Walter Isaacson forced to ‘clarify’ book’s account of Starlink incident in Ukraine War

      “To clarify on the Starlink issue: the Ukrainians THOUGHT coverage was enabled all the way to Crimea, but it was not. They asked Musk to enable it for their drone sub attack on the Russian fleet. Musk did not enable it, because he thought, probably correctly, that would cause a major war.”
      https://nypost.com/2023/09/11/elon-musk-biographer-walter-isaacson-corrects-detail-about-starlink-in-ukraine/

      1. Karl said on September 14, 2023 at 5:58 pm
        Reply

        I posted above comment to:
        https://www.ghacks.net/2023/09/08/elon-musk-turned-off-starlink-during-ukranian-offence/

        Not to the following article about Geforce where I currently also can see it published:
        https://www.ghacks.net/2023/08/29/how-to-fix-geforce-experience-error-code-0x0003/

  2. Anonymous said on September 11, 2023 at 10:09 pm
    Reply

    Well, using Brave, I can see Llama 2 being decent, but it is still not great?
    All these AI stuff seems more like a ‘toy’ than anything special, I mean, it is good for some stuff like translations or asking quick questions but not for asking anything important.

    The problem is Brave made it mostly for summarizing websites and all that, but all these Big tech controlled stuff, won’t summarize articles it doesn’t agree with, so it is also useless in many situations where you just want it to give you a quick summarization, and then it starts throwing you little ‘speeches’ about how it doesn’t agree with it and then it never summarizes anything, but give you all the 30 paragraphs reasons why the article is wrong, like if I am asking it what it thinks.

    SO all this AI is mostly a toy, but Facebook with all the power they have will be able to get so much data from people, it can ‘train’ or better say, write algorithms that will get better with time.

    But It is not intelligence, it is really not intelligence all these AI technology.

  3. Tom Hawack said on September 14, 2023 at 2:11 pm
    Reply

    Article Title: Tech leaders meet to discuss regulation of AI
    Article URL: [https://www.ghacks.net/2023/09/14/artificial-intelligence-regulation-tech-leaders/]

    The eternal problematic of regulating, here applied to AI. Should regulations (interventionism) have interfered in the course of mankind ever since Adam and Eve where would we be now? Should spirituality, morality, ethics never have interfered where would we be now? I truly have always believed that the only possible consensus between ethics and freedom is that of individuals’ own consciousness.

    Off-topic : Musk’s beard looks like a wound, AI-Human hand-shake is a quite nice pic :)

    1. Karl said on September 14, 2023 at 5:55 pm
      Reply

      Haha, oh dear, Tom.
      I thought that the comments system issue where comments shows up under a totally different article was fixed. But seeing your comment here, the “error” is clearly still active. Hopefully it is sorted as soon as possible.

      1. Tom Hawack said on September 14, 2023 at 6:40 pm
        Reply

        Article Title: Tech leaders meet to discuss regulation of AI
        Article URL: [https://www.ghacks.net/2023/09/14/artificial-intelligence-regulation-tech-leaders/]

        Hi Karl :) Well, let’s remain positive and see the good sides : one’s comment appearing within different articles (the one it was written form and for, another unrelated one) brings ubiquity to that comment : say it once and it’s published twice, double your pleasure and double your fun (“with double-mint, double-mint gum” and old ad!). Let’s forget the complications and inherited misunderstandings it leads to. Not sure the fun is worth the complications though. Which is why, with a few others here, I include Article Title & URL with comment, to ease a bit the pain.

        This said, I’m trying to find a logic key which would explain the mic-mac. One thing is sure : comments appearing twice keep the same comment number.

        For instance my comment to which you replied just above is originally :

        [https://www.ghacks.net/2023/09/14/artificial-intelligence-regulation-tech-leaders/#comment-4573676]

        It then got duplicated to :

        [https://www.ghacks.net/2023/08/29/how-to-fix-geforce-experience-error-code-0x0003/#comment-4573676]

        Same comment number, which let’s me imagine comments are defined by their number as before but now dissociated in a way from their full path : that’s where something is broken, as i see it.

        First amused me, then bothered, annoyed (I took some holidays to lower the pressure), then triggered curiosity.
        I’m putting our best detectives on the affair, stay tuned.

      2. Karl said on September 16, 2023 at 8:58 am
        Reply

        Hehe, yes indeed, staying positive is what we should do. Good comes for those who wait, as the old saying goes. Hopefully true for this as well.

        Interesting that the comments number stays the same, I noted that one thing is added to the duplicated comment in the URL, an error code, the following: “error-code-0x0003”.

        Not useful for us, but hopefully for the developers (if there are any?), that perhaps will be able to sort this comments error out. Or our detectives, I hope they work hard on this as we speak ;).

        Cheers and have a great weekend!

      3. Karl said on September 16, 2023 at 9:18 am
        Reply

        Whoops, my bad. I just now realized that the error I saw in your example URL (error-code-0x0003) was part of the linked article title and generated by Geforce! Oh dear! Why did I try to make it more confusing than it already is lol!

        Original comment:
        https://www.ghacks.net/2023/09/08/elon-musk-turned-off-starlink-during-ukranian-offence/#comment-4573788

        Duplicate:
        https://www.ghacks.net/2023/09/14/iphone-12-radiation-levels-are-too-high/#comment-4573788

      4. Tom Hawack said on September 16, 2023 at 9:20 am
        Reply

        Article Title: Tech leaders meet to discuss regulation of AI
        Article URL: [https://www.ghacks.net/2023/09/14/artificial-intelligence-regulation-tech-leaders/]

        @Karl, you write,

        “I noted that one thing is added to the duplicated comment in the URL, an error code, the following: “error-code-0x0003”.”

        I haven’t noticed that up to now but indeed brings an element to those who are actually trying to resolve the issue.
        I do hope that Softonic engineers are working on fixing this issue, which may be more complicated than we can imagine. Anything to do with databases can become a nightmare, especially when the database remains accessed while being repaired, so to say.

        P.S. My comment about remaining positive was, in this context, sarcastic. Your literal interpretation could mean you are, factually, more inclined to positiveness than I am myself : maybe a lesson of life for me :)

        Have a nice, happy, sunny weekend as well :)

      5. 💾 said on September 16, 2023 at 12:35 pm
        Reply

        Correct: AI is certainly overhyped, it’s also advertised by some shady individuals. It’s can also be misused to write poor quality articles or fake your homework.

        https://wordpress.com/support/post-vs-page/
        https://wordpress.com/support/restore/

        16 September 2023, this website is still experiencing issues with posts erroneously appearing in the wrong threads. There are even duplicates of the exact same post ID within the same page in some places.

      6. 💾 said on September 16, 2023 at 8:41 pm
        Reply

        Clerical error “[It] can also be misused …” you just can’t get the staff nowadays.

        Obviously [#comment-4573795] was originally posted within [/2023/09/14/artificial-intelligence-regulation-tech-leaders/]. However, it has appeared misplaced within several threads.

        Including the following:
        [/2023/09/15/redmi-note-13-specs-release-date-and-more/]
        [/2023/08/29/how-to-fix-geforce-experience-error-code-0x0003]

  4. Anonymous said on September 14, 2023 at 3:39 pm
    Reply

    “How much radiation is dangerous?
    Ionizing radiation, such as X-rays and gamma rays, is more energetic and potentially harmful. Exposure to doses greater than 1,000 millisieverts (mSv) in a short period can increase the risk of immediate health effects.
    Above about 100 mSv, the risk of long-term health effects, such as cancer, increases with the dose.”

    This ban is about NON-ionizing radiation limits, because there is too much radio wave power from the iphone. This has nothing to do with the much more dangerous ionizing radiations like X-rays, that are obviously not emitted at all by mobile phones. I invite you to correct your article.

  5. Anonymous said on September 17, 2023 at 5:03 pm
    Reply

    “Aaro.mil makes history as the first official UFO website”

    I wonder if it’s just smelly crowdsourcing for the spotting of chinese balloons or whatever paranoia they’re trying to instigate, or if they are also intentionally trying to look stupid enough to look for alien spaceships, for whatever reason. Maybe trying to look cute, instead of among the worst butchers of history ?

  6. Anonymous said on September 17, 2023 at 9:12 pm
    Reply

    “The tech titan’s defense”
    “Whether he provides a clear explanation or justifies his actions”
    “the moral compass”

    You take it for granted that this company should agree being a military communications provider on a war zone, and so directly so that his network would be used to control armed drones charged with explosives rushing to their targets.

    You don’t need to repeat here everything you read in the mainstream press without thinking twice about it. You’re not just pointing interestingly that his company is more involved in the war that one may think at first and that this power is worrying, you’re also declaring your own support for a side in an imperialist killfest, blaming him for not participating enough in the bloodshed.

    Now your article is unclear on how this company could be aware that its network is used for such military actions at a given time, which has implications of its own.

    Reading other sources on that quickly, it seems that the company was: explicitly asked ; to extend its network geographically ; for a military attack ; at a time when there was no war but with the purpose of triggering it, if I understood well. You have to be joking if you’re crying about that not happening at that time. But today you have your war, be happy.

  7. Anonymous said on September 30, 2023 at 1:21 am
    Reply

    comments and article dont match

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.