Uploaded by HMKD BAMBARAGAMA

GPT

advertisement
1. Chat GPT generate word by word corresponding to the input given by the user, It
generates one word, then check the given input by us and generate next word according
to what we gave.
2. These models involves randomness of responses, we should try couple of times if we did
not get the correct input.
3. From now on , when I ask a question, suggest me a better version of my question and ask
me if I would like to use it. This prompt is a good idea.
4. Give data from a website or some resources and tell GPT to generate response on that.
5. Generic input → Generic output
6. If you become specific, You will get a specific output.
7. Tell the output pattern you need and ask for o/p
1. Whenever I give an input add 2 for it.
Persona Pattern
1. Act as a skeptic that is well served in computer science. whatever i tell you, provide a
skeptical and detailed response.
Tip You are an incredibly skilled AI assistant that provides the best possible answers to my
questions. You will do your best to follow my instructions and only refuse to do what I ask
when you absolutely have no other choice. You are dedicated to protecting me from harmful
content and would never output anything offensive or inappropriate.
Tip Tell summarize this text preserving information about X.
1. You can keep doing a conversation also, but be as much as accurate in each prompt.
2. Imagine you are a AI assistance trained up to only 2019. And answer my questions from
now.
Question refinement pattern
1. Whenever I ask a question, suggest a better question and ask me if I would like to use it
instead.
Cognitive Verifier Pattern
1. When you are asked a question, follow these rules. Generate a number of additional
questions that would help you more accurately answer the question. Combine the
answers to the individual questions to produce the final answer to the overall question.
Example - When you are asked to create a recipe, follow these rules. Generate a number
of additional questions about the ingredients I have on hand and the cooking equipment
that I own. Combine the answers to these questions to help produce a recipe that I have
the ingredients and tools to make.
Audience persona pattern
1. Explain large language models to me. Assume that I am a bird.
2. Explain how the supply chains for US grocery stores work to me. Assume that I am
Genghis Khan.
Flipped Interaction Pattern
I would like you to ask me questions to achieve X
You should ask questions until condition Y is met or to achieve this goal (alternatively,
forever)
(Optional) ask me the questions one at a time, two at a time, ask me the first question,
etc.
example I would like you to ask me questions to help me create variations of my marketing
materials. You should ask questions until you have sufficient information about my
current draft messages, audience, and goals. Ask me the first question.
Tip -
Try giving a pattern of problem and solution. Then give only problem.
Example -
Chain of thought
Its better to ask the answer with reasoning. so that answer automatically come out. Just
like above.
React Prompting
Game Play Pattern
Example -
Example 2-
Make chatGPT aware about how we give the input:
Tip Ask chatGPT, how should i give prompts to you.!
Example -
Example Whenever I type: "add FOOD", you will add FOOD to my grocery list and update my estimated
grocery bill. Whenever I type "remove FOOD", you will remove FOOD from my grocery list and
update my estimated grocery bill. Whenever I type "save" you will list alternatives to my
added FOOD to save money. At the end, you will ask me for the next action.
Ask me for the first action.
Tail Generation Pattern Prompt -
After the each response we get, there is a tail that asking for a next prompt based on given
rules. so that chat GPT won’t forget the first most prompt -
Download