提示(Prompt)撰寫其實是一個逐步修正的過程,不要期待第一次就上手
迭代式提示開發: 創建有效的提示通常需要多次迭代。初始提示可能無法完全符合預期的結果。因此,根據初始輸出對提示進行精煉至關重要。
清晰和具體: 在提示的指令中清晰和具體很重要。無論是字數、句子結構還是特定所需的詳細資訊,都提供清晰的指導對於模型獲得更準確的結果至關重要。
調整提示: 如果初始輸出不符合期望(例如,長度過長或缺少特定資訊),則需要修改指令。這可能涉及調整字數、添加或更改特定細節,或改變輸出的焦點。
複雜的提示: 隨著時間的推移,隨著迭代的進行,提示可能變得更加詳細和複雜。這種複雜性可能包括格式要求(如HTML輸出)或要求特定的數據安排(如表格)。
應用軟體的成熟度: 隨著應用的成熟,對提示進行評估,應對較大量的示例進行評估變得至關重要,以確保在不同的輸入下具有一致且準確的性能。
整體而言,透過迭代方法開發提示,從單一示例開始,逐步根據輸出精煉指令,有助於為利用LLM的各種應用程式打造有效的提示。
Example: Test of comprehension
Version 1: Generate the problems
Prepare 10 multiple choice problems from the paste text above to test comprehension.
Shani Dhanda's activism primarily focuses on:
A) Raising awareness for mental health issues
B) Advocating for environmental sustainability
C) Promoting cultural diversity
D) Advocating for the rights of people with disabilities
What year did Shani Dhanda organize the first event supporting disabled individuals and South Asian women?
A) 2018
B) 2019
C) 2020
D) 2021
What medical condition does Shani Dhanda have?
A) Rare genetic disorder
B) Brittle Bone Disease
C) Chronic fatigue syndrome
D) Muscular dystrophy
The "Diversability Card" app created by Shani Dhanda aims to provide:
A) Social media networking for disabled individuals
B) Travel guidance for people with disabilities
C) Restaurant ratings and food delivery services
D) Discounts for people with disabilities
Shani Dhanda's vision for the future primarily revolves around:
A) Global entrepreneurship programs
B) Financial independence for disabled individuals
C) Reducing carbon emissions
D) Increasing government funding for disability services
Version 2: Making it more interactive
Prepare 10 multiple choice problems from the paste text above to test comprehension. Generate one problem at a time. Then you request an answer. Then generate next problem.
Prepare 10 multiple choice problems from the paste text above to test comprehension. Generate one problem at a time. Then you request an answer. After you receive one, grade it. Then generate next problem.
Prepare 10 multiple choice problems from the paste text above to test comprehension. Generate one problem at a time. Then you request an answer. After you receive one, grade it. Then generate next problem. In the end, tell me out of the 10 questions above, how many questions are correctly answered?
Version 1 Generate the problems
Based on the vocabulary: (Exoskeleton, Myoelectric, Sensors, Hydraulic, Cylinder, Prosthesis, Rehabilitation, Paralysis, Spinal cord, Neural), prepare 5 fill the blank quiz questions.
- The ___________ system in robotics uses electrical signals generated by muscle contractions to control artificial limbs or devices.
- Sensors integrated into exoskeletons enable the detection of motion and force, allowing for precise ___________ control in assisting movements.
- A ___________ cylinder is a mechanical device that uses fluid power to perform various tasks, often employed in advanced prosthetic designs for enhanced functionality.
- ___________ is a process that aims to restore functions to the body after an injury, commonly employed after amputation to adapt to a new prosthesis.
- Damage to the ___________ cord can result in loss of sensation or motor function below the injury site, leading to conditions such as paralysis.
Version 2 One at a time
Based on the vocabulary: (Exoskeleton, Myoelectric, Sensors, Hydraulic, Cylinder, Prosthesis, Rehabilitation, Paralysis, Spinal cord, Neural), prepare 5 fill the blank quiz questions. Generate one problem at a time. Then you request an answer. Then generate next problem.
Based on the vocabulary: (Exoskeleton, Myoelectric, Sensors, Hydraulic, Cylinder, Prosthesis, Rehabilitation, Paralysis, Spinal cord, Neural), prepare 5 fill the blank quiz questions. Generate one problem at a time. Then you request an answer. After you receive one, grade it. Then generate next problem.
Based on the vocabulary: (Exoskeleton, Myoelectric, Sensors, Hydraulic, Cylinder, Prosthesis, Rehabilitation, Paralysis, Spinal cord, Neural), prepare 5 fill the blank quiz questions. Each question has only one missing word. Generate one problem at a time. Then you request an answer. After you receive one, grade it. Then generate next problem. In the end tell me how many are correctly answered.
Based on the vocabulary: (Exoskeleton, Myoelectric, Sensors, Hydraulic, Cylinder, Prosthesis, Rehabilitation, Paralysis, Spinal cord, Neural), randomize the order of these words and then prepare 5 fill the blank quiz questions. Each question has only one missing word. Generate one problem at a time. Then you request an answer. After you receive one, grade it. Then generate next problem. In the end tell me how many are correctly answered.
based on ChatGPT and the course in https://learn.deeplearning.ai/chatgpt-prompt-eng/lesson/3/iterative
沒有留言:
張貼留言