工具链模块化: Meta-prompts可以与评估工具、外部执行器(如 Python 执行器)结合,形成闭环流程:设计—运行—评价—改进,提升提示稳定性与复用性。
Summarize this news article: {article}
Improve the following prompt to generate a more detailed summary.
Adhere to prompt engineering best practices.
Make sure the structure is clear and intuitive and contains the type of news, tags and sentiment analysis.
{初始 prompt}
Only return the prompt.
Please read the following news article and provide a comprehensive summary that includes:
1. **Type of News**: Specify the category…
2. **Summary**: …
3. **Tags**: …
4. **Sentiment Analysis**: …
**Article:** {article}
可以看出改写后的提示更具结构化、清晰性和任务指导性,显著提升输出质量。
以下是一个简单的实战指南:
总结下面这个法律文章的内容: {text}。
改进以下提示以输出“背景、关键条款、建议操作”三段结构。
参考提示工程最佳实践:清晰结构、明确内容要求。
{prototype 提示}
只输出优化后的提示。
** Note:**: 上面这个例子的元提示比较简单,如果想参考更综合更强大的元提示,OpenAI提供了一个通用的Meta-prompts模板,可以参考(https://platform.openai.com/docs/guides/prompt-generation#overview)直接使用或者修改你自己的版本。
| 欢迎光临 链载Ai (https://www.lianzai.com/) | Powered by Discuz! X3.5 |