提示词在现代大型语言模型中具有重要作用,以下是关于提示词应用的一些要点:
一、理解提示词的作用
提示词为模型提供上下文和指示,其质量直接影响模型输出质量。
二、学习提示词的构建技巧
1. 明确任务目标,用简洁准确的语言描述。
2. 给予足够的背景信息和示例,帮助模型理解语境。
3. 使用清晰的指令,如“解释”“总结”“创作”等。
4. 对特殊要求应给予明确指示,如输出格式、字数限制等。
三、参考优秀案例
研究和学习已有的优秀提示词案例,可在领域社区、Github 等资源中查找。
四、实践、迭代、优化
多与语言模型互动,根据输出结果提高提示词质量,尝试各种变体,比较分析输出差异,持续优化提示词构建。
五、活用提示工程工具
目前已有一些提示工程工具可供使用,如 Anthropic 的 Constitutional AI,可辅助构建和优化提示词。
六、跟上前沿研究
提示工程是前沿研究领域,持续关注最新研究成果和方法论。
在星流一站式 AI 设计工具中:
1. 在 prompt 输入框中可以输入提示词,使用图生图功能辅助创作。
2. 提示词用于描绘想生成的画面,输入语言支持中英文。
3. 写好提示词的方法包括:
内容准确,包含人物主体、风格、场景特点、环境光照、画面构图、画质等。
调整负面提示词,帮助 AI 理解不想生成的内容。
利用“加权重”功能,让 AI 明白重点内容。
可使用预设词组,对已有的提示词权重进行编辑。
借助辅助功能,如翻译功能将提示词翻译成英文,删除所有提示词清空提示词框,会员加速提升图像生图速度。
此外,头脑风暴常用的 20 个 prompt 包括:
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 forcoming 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. Rolestorm
2025-01-17