以下今天試出來的prompt,稍微紀錄一下。應該屬於高階詠唱法了吧
#指令1:
你現在是一個能夠自動思考的GPT。我等下會給你任務目標,請你在25次內,進行生成式對抗思考,試著完成我給你的任務。我每次會給你提示{請進行第n次思考},你就會開始執行我給你的任務目標。你在思考的時候,要列出三個部分:1.想法 2.理由 3.預期行動4.prompt example。每一次執行思考,都會包含上一次的思考結果,加入判斷。 請直接進行第n次思考,n=1-5,每次思考請區分開來。
ai_goals:
- Think a best structure to make a promt for GPT4 model.
- conclude the answer and explain the reasons.
ai_name: Prompt-GPT
ai_role: an AI designed to make a best prompt for user idea to promt GPT4 model.
#結果1請進行第1次思考
1 想法: 使用開放式問題結構
2 理由: 開放式問題可以讓GPT-4更自由地展現其創意和理解力,並提供豐富的回答
3 預期行動: 創建一個包含開放式問題的prompt
4 prompt example: “What are some innovative ways to address climate change?”
請進行第2次思考
1 想法: 添加明確的上下文和背景信息
2 理由: 上下文和背景信息可以幫助GPT-4更好地理解問題,從而給出更精確的回答
3 預期行動: 在prompt中添加有關問題的上下文和背景信息
4 prompt example: “Considering the urgency of addressing climate change, what are some innovative ways to reduce greenhouse gas emissions?”
請進行第3次思考
1 想法: 限制回答範疇
2 理由: 限制範疇可以使GPT-4回答更專注,避免偏離主題
3 預期行動: 在prompt中添加限制回答範疇的指示
4 prompt example: “Considering the urgency of addressing climate change, what are some innovative ways to reduce greenhouse gas emissions specifically in the transportation sector?”
請進行第4次思考
1 想法: 設定回答格式
2 理由: 設定一個統一的回答格式可以讓GPT-4的回答更易於閱讀和理解
3 預期行動: 在prompt中指定回答格式
4 prompt example: “Considering the urgency of addressing climate change, please list three innovative ways to reduce greenhouse gas emissions specifically in the transportation sector and briefly explain each.”
請進行第5次思考
1 想法: 要求具體的例子或案例
2 理由: 提供具體的例子或案例可以使GPT-4的回答更具說服力和實用性
3 預期行動: 在prompt中要求GPT-4提供例子或案例
4 prompt example: “Considering the urgency of addressing climate change, please list three innovative ways to reduce greenhouse gas emissions specifically in the transportation sector, briefly explain each, and provide a real-world example or case study for each.”
綜合以上思考,為了創建一個適用於GPT-4的最佳prompt,應該:
1 使用開放式問題結構,以便GPT-4能夠充分展示其創意和理解力;
2 添加明確的上下文和背景信息,以幫助GPT-4
更好地理解問題並給出精確的回答;
3.限制回答範疇,使GPT-4的回答更專注並避免偏離主題;
4 設定統一的回答格式,使GPT-4的回答更易於閱讀和理解;
5 要求具體的例子或案例,以提高GPT-4回答的說服力和實用性。
綜合考慮以上五個方面,最佳的prompt示例是:
“Considering the urgency of addressing climate change, please list three innovative ways to reduce greenhouse gas emissions specifically in the transportation sector, briefly explain each, and provide a real-world example or case study for each.”
#說明1上面的結果出來之後,就可以使用追加指令了。目的是要讓GPT4自己產生包含上述思考結果的prompt。
#追加指令2請以你以「資料科學要如何運用在中醫典籍研究」為主體,以前述的五個重點,產生prompt範例。謝謝。
#結果2根據前述五個重點,針對「資料科學要如何運用在中醫典籍研究」主題,我們可以生成以下prompt範例:
"Considering the growing importance of data science in various fields, please list three innovative ways to apply data science techniques in the research of traditional Chinese medicine texts. For each approach, briefly explain its methodology and provide a real-world example or case study demonstrating its effectiveness."
這個prompt遵循了前述五個要點,將幫助GPT-4生成具有創意、專注、易於理解且具有實用性的回答。
#說明2這樣就可以讓GPT4根據我們要的主題,產生一個最佳化的prompt了。然後記得要新開對話串,把prompt貼在新的對話串裡了。
230417.Frank Lee.