主要参考资料
Deeplearning.ai: https://www.deeplearning.ai/short-courses/chatgpt-prompt-engineering-for-developers/
B站《ChatGPT提示工程师|OpenAI官方×AI大神吴恩达|prompt engineering》
目录
Guidelines for prompt
There are X principles.
write clear and specific instructions
Tatics 1 Use delimiters(分隔符)
(1)Triple quotes“““ ”””
(2)Triple backtics ‘’’ ‘’’
(3)Triple dashes — —
(4)Angle bracktes<>
(5)XML tags
Tactic 2: ask for structured output
HTML JSON
Tactic 3: check whether conditions are satisfied
Check assuptions required to do the task
Tactic 4:few-shot prompting
Give successful examples of completing tasks
Then ask model to perform the task
Give the model time to think
Tactics 1 :specify the steps to complete a task
Step1 :
Step2:
……
Step N:
Tactics 2 :instruct the model to work out its own solution before rushing to a conclusion
Model Limitations
Hallucination
Makes statements that sound plausible
But are not true
Reducing hallucinations
First find relevant information
Then answer the question
Based on the relevant information
Model Limitations
Hallucinations
Make statements that sound plausible but are not true.
Reducing hallucinations
First find relevant information, then answer the question based on the relevant information.