赞
踩
主要参考资料
Deeplearning.ai: https://www.deeplearning.ai/short-courses/chatgpt-prompt-engineering-for-developers/
B站
There are X principles.
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
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
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.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。