ChatGPT The 8 Prompting Techniques

You might or may not have heard of prompt engineering. In essence, it’s communicating with an AI to obtain the results you desire’.

The majority of people don’t like the speed of engineering

But, it’s becoming more and more crucial skill…Because garbage in equals garbage out.

Here are the most crucial methods you can use to prompt

The term I’ll use to describe a model of language by the name “LM”.

Some examples of language models include the @OpenAI‘s ChatGPT as well as the @AnthropicAI‘s Claude.

1. Personal/role prompting

Delegate a job to AI. AI.

Examples: “You are an expert in X. You’ve assisted people in doing the Y task for more than 20 years. Your job is to provide the most effective advice on X.

Respond with ‘got it’, in the event that you understand.”

An effective add-on is:

You must always inquire before answering to ensure you understand what the person asking questions.’

I’ll discuss why this is so crucial in a moment.



2. CoT

CoT is a contraction of “Chain of Thought’

It’s used to train the LM to provide its reasons.

Example:

ChatGPT The 8 Prompting Techniques You Should Master (No Nonsense! )



3. Zero-shot-CoT

Zero-shot is a term used to describe a model that makes predictions with no further training in the prompt.

I’ll be able to shoot a few shots within a few minutes.

It is important to note that CoT usually > Zero-shot-CoT

Example:

ChatGPT The 8 Prompting Techniques You Should Master (No Nonsense! )



4. Few-shot (and few-shot-CoT)

Few-shot occurs when the LM is provided with a few examples to prompt it to be able to quickly adapt to new situations.

Example:



5. Knowledge Generation

The generation of knowledge related to questions is accomplished through inducing an LM.

This can be used as an generated knowledge prompt (see more).

Example:

ChatGPT The 8 Prompting Techniques You Should Master (No Nonsense! )



6. The Knowledge Gained is Accumulated

Once we know and information, we can put the information into a new prompt, and then pose questions based on the information.

A question like this is referred to as”knowledge-augmented” questions.

 

7. Self-Consistency

This method is employed to create multiple reasoning pathways (chains of thinking).

The majority of answers are taken to be the final answer.

Example:

ChatGPT The 8 Prompting Techniques You Should Master (No Nonsense! )



8. LtM

LtM is a reference to ‘Least to Most’

This method is a follow-up to CoT. It also is based on breaking the problem into smaller ones and then solving them.

Example:

ChatGPT The 8 Prompting Techniques You Should Master (No Nonsense! )

By Steven Smith

Steven Smith is a fanatical writer, blogger, and a devotee. She produces superior articles, how-tos, latest tips and tricks, and reviews. She takes pride in helping businesses through his content. When she’s not writing, she’s probably playing games and watching horror movies.