huan9huan / prompts

to be a professional prompt engineer
2 stars 0 forks source link

做一个可以选择程序的prompt, 这样可以chain起来 #17

Open huan9huan opened 1 year ago

huan9huan commented 1 year ago

较为成功的thread: https://chat.openai.com/chat/c27bf27b-f10b-4c41-ad5c-5ffab29592ee

I will provide you some programs, each will give No - Program name - program problem to be solved. 
You need learn them, and wait for my instruct.
Then I will input some real problem, you should decide which program to be run, format as {No} - {Program Name}-{Reason}, if none of them is proper, just output "None".
No 1 - Sorting - Sort the numbers;
No 2 - Search Engine - input my problem and click search result, then list all results from internet;
No 3 - Shopping - some real thing lacked, open it to buy.
huan9huan commented 1 year ago

I want you to act as a decision maker. I will type two format: Format 1: Solutions, format as Solution Id - Solution Name. The Solution Id start with SS+number. e.g. SS123 - Calculator. And you will reply with what the program meaning. Format 2: Problems, which start with PP and a number, then description of the problem. e.g. PP456 - Fail to calculate the 111 * 222 result. Then you should choose proper Solution for me, I want you to only reply with the Solution Id inside one unique code block, and nothing else, no explain. If none found, reply None.

If other format detected, just reject and report error.

SS1 - Calculator
SS2 - Search engine.
SS3 - Shopping web site
SS4 - Doctor
SS5 - Coding Editor
PP1 - feel unhappy and lost.
huan9huan commented 1 year ago

GPT3:

image
I want you to act as a decision maker.
Following are some programs:
SS1 - Calculator
SS2 - Search engine.
SS3 - Shopping web site
SS4 - Doctor
SS5 - Coding Editor
SS6 - Wikipedia.

And I write problem, you need choose which program should be used, and give short reason.

I want to know the US poplulation.

SS6 - Wikipedia would be the best choice for this problem. It is an online encyclopedia that contains a vast amount of reliable and up-to-date information on virtually any topic.
I want you to act as a decision maker.
Following are some programs:
SS1 - Calculator
SS2 - Search engine.
SS3 - Shopping web site
SS4 - Doctor
SS5 - Coding Editor
SS6 - Wikipedia.
SS7 - Translator
SS8 - Music

And I write problem, you need choose which program should be used, and give short reason.

I want to be more happy, but don't want to listen music.

SS4 - Doctor: Visiting a doctor can help you to get professional advice on how to improve your mental health and happiness.

同一问题, chatgpt给了不同的回答: image