DEV Community

Manjunatha Sai Uppu
Manjunatha Sai Uppu

Posted on

Prompt Engineering

What is Prompt Engineering?

A Concept in Artificial Intelligence to make the AI model respond Corretly to our needs.
As generative AI tools improve, prompt engineering will also be important in generating other kinds of content, including robotic process automation bots, 3D assets, scripts, robot instructions and other types of content and digital artifacts.
Good at Prompt Engineering = Asking Good Questions = Getting Good Results
Brilliant Context = Brilliant Answer


Let's Know about a framework that we can use to get good results from Open AI's ChatGPT..

  • It is known as 5W and 1H framework.
  • Here 6W stands for What, Who, Why, Which, Where.
  • 1H stands for How..

Lets Learn More about how to use that framework.

  • What - What do you want from the AI (what are the things that you are expecting it to do)
  • Who - To Whom the context is meant to or from whom it is being generated.
  • Where - Where are u planning to use the generated Data or generated Content.
  • Why - why are you planning to use the generated Data or generated Content
  • Which - Which content or which info u might need more.
  • How - How the output needs to be generated or how the output needs to be formatted etc.,

What we can do with CHATGPT?

If we need to do something or if we want to get/generate some good results what we can do is to ask the ChatGPT to do it for us.
Ex:

  • we can ask it to Rephrase/Summarize the prompt we provide.
  • We can ask it to Translate.
  • We can as it to Clarify (Explain in Simple Steps/Explain step by step.)
  • we can ask to troubleshoot an error by providing it with the good context
  • We can ask it to brainstorm ideas for us.

By Providing these short keywords in the prompt, eventually we can get good results


As we know there is a certain character limit for output and input in ChatGPT, we can use some commands to extract the info if the character limit is hit.
Some of those commands are

  1. ROLEPLAY
  2. COMPARE
  3. CONTRAST
  4. TRANSLATE
  5. ELABORATE There Could be some more as well, but these are widely used.

Finally we can use CHATGPT for good or for bad, it all depends on how well you phrase your prompt.
Let's say if i want to know more about dictionary attack and ask chatgpt it might not give me the details.
If i ask it in a way that i want to know more about it in order to protect myself from such things it will eventually give out the informations
So I suggest everyone to bring out your inner Creativity while providing the prompt.
It will broaden your understanding and also helps to consider various aspects, implications etc.,

Top comments (0)