Mastering Prompt Engineering: Tips and Tricks for Optimal AI Performance

Chamara Vishwajith
2 min readApr 8, 2023

--

The prompt is the text which we give to the AI as a command. According to the below photo, the prompt is “Write down the two topics for the essay”.

According to the style of command (prompt) given to the AI, The result will be changed. Let’s look at the below example. First, I write the prompt as “Write down the titles for youtube videos”. As you can see I got the result.

Let’s try to write a prompt for the same thing in a different way. It is a little deeper and can be got more results from it.

Now you can see AI asks questions from us because they want to give better results. Now you can understand, the style of prompting is affected by the result.

After I answered the question. AI geniture the topic which we want.

Now you can see a big difference between the first one and the second one. The second one generates a better result than the first one. That’s why the prompts engineering is important.

Part of the prompt that I use

There are three main parts to that prompt. They are Give role, Provide details, and Let It ask questions.

As a summary, we discuss “What is the prompt?”, one prompting style, and the main part of that prompt. According to the example according the prompt, the result can be changed. That’s why prompt engineering is very important.

--

--

Chamara Vishwajith

Bits and bytes are my thing 🖥️ | Always learning, always coding 🔍