以下是关于如何编写提示词(prompt)的全面指导:
一、编写 prompt 的一般建议
1. 明确任务:清晰定义任务,如写故事时包含背景、角色和主要情节。
2. 提供上下文:若任务需特定背景知识,提供足够信息。
3. 使用清晰语言:避免模糊或歧义词汇,用简单明了的表述。
4. 给出具体要求:如格式、风格或引用文献等方面的要求。
5. 使用示例:提供期望结果的示例,帮助 AI 理解需求。
6. 保持简洁:避免过多信息导致 AI 困惑。
7. 使用关键词和标签:有助于 AI 理解任务主题和类型。
8. 测试和调整:生成文本后检查结果,根据需要调整 prompt。
二、律师编写 prompt 的建议框架及格式 CRISPE
1. Capacity and Role(能力与角色):明确 AI 的角色和能力,如专注于民商事法律领域、擅长案例研究等。
2. Insight(洞察):提供背景信息和上下文,如案件关键事实、相关法律等。
3. Statement(陈述):明确期望 AI 完成的任务,如总结诉求、检索法条等。
4. Personality(个性):设定 AI 的回答风格或方式。
5. Experiment(举例):通过具体例子说明上述各点。
三、头脑风暴常用的 20 个 prompt
1. Take on the perspective of afrom their point of view.My aim is to find new ways to improve.
2. Scenarios Prompt:Imagine a best case scenario for:everything goes right.Now imagine a worst case scenario:everything goes wrong.Brainstorm ideas for each.
3. Analogy Thinking Prompt:is like what?Identify an analogy,then brainstorm ideas based on properties of the analogy.Explain each idea that follows from this analogy.
4. Idea Spurring Prompt:Build on the following idea related to.What does it make you think of?Use it as a jumping off point for more ideas.
5. Concept Fan Prompt:Here is one idea related to.Fan out from this concept in different directions to generate related ideas.Explain each new idea in a few words.
6. Evil Genius Prompt:Pretend you're an evil genius plotting against.How would you undermine it?Reverse engineer your evil plans into constructive ideas.
7. Random Stimuli Prompt:Use this random.Make unlikely connections.
8. Headline Writing Prompt:Come up with turn them into full ideas.
9. Brainstorming Journey Prompt:Imagine you're on a journey related to.Describe where you are,what you see,who you meet,what you're thinking let the scenario spark ideas.
10. Outside Perspectives Prompt:Bring in different viewpoints to ideate onand get new perspectives.Develop these different points of view,explaining succinctly why they are relevant in each case.
希望以上内容能对您编写 prompt 有所帮助。请注意,内容由 AI 大模型生成,请仔细甄别。
2024-11-21