Hi guys.
Welcome to this session.
So in this session we'll talk about prompt engineering understanding prompt engineering in detail how
this actually works on the ChatGPT tool.
So what is prompt engineering.
So let's read through this and understand it clearly.
Prompt engineering is a process of designing and optimizing prompts used in natural language processing
models, such as ChatGPT or virtual assistants.
This involves crafting prompts that are clear, concise, and effective in eliciting the desired result.
So, for example, prompt engineering is like making an effective fishing lure just as well designed
lure is more likely to catch the fish, a well crafted prompt will also more likely to give us the desired
results.
There are three main principles of prompt engineering, which you keep in mind while you are working
with this tool.
The first can be being specific.
The more criteria you give, the more focused the output will be.
The more specific information we are going to provide to the ChatGPT tool.
It is going to give us much more properly desired structured responses based on that work in steps.
So we have to break down a task into smaller chunks of tasks which we give it.
We can't go and ask ChatGPT to write a book for us, so we have to structure it down into small, small
steps.
So maybe discussing about the topic of the book, which what will the topic of the book?
Then thinking about the table of content, what will be the topics?
Chapter one, chapter two, what will be the chapters for it?
And then working on each of the chapters one after the other.
So working in steps really helps to get a much more better responses from the.
The other thing which you can keep in mind is iterate and improve.
So once you get a response from ChatGPT, we can rework on the on the inputs as well, which we are
giving.
Plus we can improve on the outputs which ChatGPT is providing us.
So we can go ahead and modify that.
We can ask in a different manner.
We can bring out different versions of the output which we have got and ask again to re improvise on
that.
So all those things has to be a continuous process.
So this is how your prompt engineering is going to evolve and improve over a period of time.
Now what makes a good prompt.
Great prompts all come down to the data the model was trained on.
So ChatGPT data which is at the back end which they have been pulling up.
It's all based on the data they have pulled up.
And now based on that it's giving us the responses, its parameters.
Good prompting.
Since we can only control one of these, here's what the good prompting looks like.
So the good prompting we have to keep in mind clear and concise language that is direct and unambiguous.
Okay, whatever prompt you are giving to the tool has to be very clear and concise to the point.
Vague prompts will produce vague responses.
So we just need to go ahead and keep that in mind.
The persona that you are assigned to ChatGPT, also known as who it will be acting as in the prompt.
Okay, so there can be one aspect of it.
We'll talk about it as well where you can act.
You can ask ChatGPT to act in a certain manner, like a philosopher, maybe a doctor or an engineer.
Okay, so in that manner, you can ask ChatGPT to act in a certain manner and give the responses.
The other thing is the information and the examples that you provide, also known as your input.
The more examples, specific information you're going to give in your input, the responses will be
that very well high quality responses.
You will get a specific task that you are requesting ChatGPT to complete, also known as the desired
output.
The.
We have to make sure that the we have to ask for a specific task, so that only then we can expect to
get a desired result out of it.
Refinement as needed.
Once you receive your first response, also known as reiteration, until receiving the desired output.
So this is again refinement of the outputs which you are getting and again asking in a different manner
to get better outcomes from ChatGPT.
Now main prompting steps.
What you can keep in mind is defining the problem or goal in a clear manner.
Clear.
Articulate what you want ChatGPT to help you with using relevant keywords and phrases in the prompt,
you need to input the right most useful industry and topic related terms into the prompt to get the
desired result.
Write the prompt so crafting a concise prompt that clearly communicates the information and task that
is required to be performed by the tool.
Also, apart from this testing, your evaluation process iteration process has to be a part of it.
Generate responses with ChatGPT.
Once you get the responses, you evaluate the results.
You go ahead and iterate on it and ask for a improved.
You modify that and ask in a different manner to ChatGPT to get the desired responses.
So this is what is going to be prompt engineering how you give your prompt to the tool, which is going
to define the kind of responses you will get from it.
I hope this makes sense.
You understand prompt engineering now.
Thank you so much guys for listening to this and I will see you in the next video.