以下是关于提示词模式的相关内容:
提示词模板:
您可以参考 中优秀作品的提示词作为模板。类似的网站还有:
提示词格式:
前文中采取的是比较简单的提示词,标准提示词应遵循以下格式。这种可以被格式化为标准的问答格式,如:
以上的提示方式,也被称为零样本提示(zeroshot prompting),即用户不提供任务结果相关的示范,直接提示语言模型给出任务相关的回答。某些大型语言模式有能力实现零样本提示,但这取决于任务的复杂度和已有的知识范围。具体的零样本提示示例如下:
对于一些较新的模型,您可以跳过 Q:部分,直接输入问题。因为模型在训练过程中被暗示并理解问答任务,换言之,提示词可以简化为下面的形式:
基于以上标准范式,目前业界普遍使用的还是更高效的小样本提示(Fewshot Prompting)范式,即用户提供少量的提示范例,如任务说明等。小样本提示一般遵循以下格式:
而问答模式即如下:
注意,使用问答模式并不是必须的。您可以根据任务需求调整提示范式。比如,您可以按以下示例执行一个简单的分类任务,并对任务做简单说明:
头脑风暴常用的 20 个 prompt:
20 ChatGPT prompts to brainstorm and find infinite new ideas in every field:
1. Brainwriting Prompt: "Let's brainstorm ideas forby writing down as many ideas as you can,then I can build on them with related ideas.Structure your answer using markdown.”
2. Reverse Brainstorming Prompt: "We will use reverse brainstorming for coming up with intentionally bad ideas can spark creativity and lead us in new directions."
3. Mind Mapping Prompt: "Please create a complete mind map forstarting with a central concept and expanding outward with connected branches of related ideas."
4. Assumptions Prompt: "List your assumptions about.Then,how can you challenge those assumptions to come up with innovative ideas?Describe your journey.”
5. SWOT Analysis Prompt: "Let's do a SWOT analysis onconsidering internal strengths/weaknesses and external opportunities/threats.Then write a conclusion to summarize."
6. SCAMPER Prompt: "Use the SCAMPER checklist to ideate on.How can we substitute,combine,adapt,modify,put to other uses,eliminate,or reverse?Detail your answers."
7. Six Thinking Hats Prompt: "Use the Six Hats method:the red hat is optimistic,the black hat looks at negatives,etc.Ideate onfrom different mindset angles."
8. Worst Possible Idea Prompt: "Brainstorm intentionally terrible ideas forto get the creative juices flowing in new directions.Expand on your answers a little,explaining why these ideas are bad."
9. Trigger Words Prompt: "Here are some random words:?”
10. Questioning Prompt: "Generate questions about,like who,what,when,where,why,how?Turn the questions into ideas.”
11. Rolestorming Prompt: "Take on the perspective of afrom their point of view."
2024-08-23