提示词工程

什么是Prompt

Prompt是一种用于指导以大语言模型为代表的生成式人工智能生成内容(文本、图像、视频等)的输入方式。它通常是一个简短的文本或问题,用于描述任务和要求。

Prompt可以包含一些特定的关键词或短语,用于引导模型生成符合特定主题或风格的内容。例如,如果我们要生成一篇关于"人工智能"的文章,我们可以使用"人工智能"作为Prompt,让模型生成一篇关于人工智能的介绍、应用、发展等方面的文章。

Prompt还可以包含一些特定的指令或要求,用于控制生成文本的语气、风格、长度等方面。例如,我们可以使用"请用幽默的语气描述人工智能的发展历程"作为Prompt,让模型生成一篇幽默风趣的文章。

总之,Prompt是一种灵活、多样化的输入方式,可以用于指导大语言模型生成各种类型的内容。

什么是提词工程

提词工程是一种通过设计和调整输入(Prompts)来改善模型性能或控制其结果的技术。

在模型回复的过程中,首先获取用户输入的文本,然后处理文本特征并根据输入文本特征预测之后的文本,原理为next token prediction。

提词工程师模型性能优化的基石,有以下六大基本原则:

①指令要清晰

②提供参考内容

③复杂的任务拆分成子任务

④给LLM思考时间(给出过程)

⑤使用外部工具

⑥系统性测试变化

提示设计框架

①CRISPE,参考https://github.com/mattnigh/ChatGPT3-Free-Prompt-List

  • Capacity and Role(能力与角色):希望ChatGPT扮演怎样的角色。

  • Insight(洞察力):背景信息和上下文(坦率说来我觉得用Context更好。

  • Statement(指令):希望ChatGPT 做什么。

  • Personality (个性):希望 ChatGPT 以什么风格或方式回答你。​

  • Experiment (尝试):要求 ChatGPT 提供多个答案。

写出的提示如下:

担任机器学习框架主题的软件开发专家和专业博客作者。本博客的受众是有兴趣了解机器学习最新进展的技术专业人士。全面概述最流行的机器学习框架,包括其优缺点。包括现实生活中的例子和案例研究,以说明这些框架如何在各个行业中成功使用。在回复时,请混合使用 Andrej Karpathy、Francois Chollet、Jeremy Howard 和 Yann LeCun 的写作风格。

②CO-STAR,参考:CO-STAR Framework -- AI Advisory Boards

  • Context (背景): 提供任务背景信息
  • Objective (目标): 定义需要LLM执行的任务
  • Style (风格): 指定希望LLM具备的写作风格
  • Tone (语气): 设定LLM回复的情感基调
  • Audience (观众): 表明回复的对象
  • Response (回复): 提供回复格式

写出提示如下:

CONTEXT

I am a personal productivity developer. In the realm of personal development and productivity, there is a growing demand for systems that not only help individuals set goals but also convert those goals into actionable steps. Many struggle with the transition from aspirations to concrete actions, highlighting the need for an effective goal-to-system conversion process.

#########

OBJECTIVE

Your task is to guide me in creating a comprehensive system converter. This involves breaking down the process into distinct steps, including identifying the goal, employing the 5 Whys technique, learning core actions, setting intentions, and conducting periodic reviews. The aim is to provide a step-by-step guide for seamlessly transforming goals into actionable plans.

#########

STYLE

Write in an informative and instructional style, resembling a guide on personal development. Ensure clarity and coherence in the presentation of each step, catering to an audience keen on enhancing their productivity and goal attainment skills.

#########

Tone

Maintain a positive and motivational tone throughout, fostering a sense of empowerment and encouragement. It should feel like a friendly guide offering valuable insights.

AUDIENCE

The target audience is individuals interested in personal development and productivity enhancement. Assume a readership that seeks practical advice and actionable steps to turn their goals into tangible outcomes.

#########

RESPONSE FORMAT

Provide a structured list of steps for the goal-to-system conversion process. Each step should be clearly defined, and the overall format should be easy to follow for quick implementation.

#############

START ANALYSIS

If you understand, ask me for my goals.

相关推荐
坚毅不拔的柠檬柠檬5 小时前
AI革命下的多元生态:DeepSeek、ChatGPT、XAI、文心一言与通义千问的行业渗透与场景重构
人工智能·chatgpt·文心一言
维维180-3121-145511 小时前
AI赋能生态学暨“ChatGPT+”多技术融合在生态系统服务中的实践技术应用与论文撰写
人工智能·chatgpt
♡喜欢做梦12 小时前
Deepseek 与 ChatGPT:AI 浪潮中的双子星较量
ai·chatgpt·deepseek
Orange--Lin14 小时前
【用deepseek和chatgpt做算法竞赛】——还得DeepSeek来 -Minimum Cost Trees_5
人工智能·算法·chatgpt
技术程序猿华锋16 小时前
OpenAI 周活用户破 4 亿,GPT-4.5 或下周发布,微软加紧扩容服务器
microsoft·chatgpt·deepseek
南 阳1 天前
百度搜索全面接入DeepSeek-R1满血版:AI与搜索的全新融合
人工智能·chatgpt
播播资源2 天前
ChatGPT付费创作系统V3.1.3独立版 WEB端+H5端+小程序端 (DeepSeek高级通道+推理输出格式)安装教程
前端·ai·chatgpt·ai作画·小程序·deepseek·deepseek-v3
qq_15321452642 天前
Openai Dashboard可视化微调大语言模型
人工智能·语言模型·自然语言处理·chatgpt·nlp·gpt-3·transformer
怪怪王2 天前
【编译器】-NIR
ai·chatgpt
AIGC大时代2 天前
DeepSeek学术指南:利用DeepSeek撰写学术论文和需要注意的问题
chatgpt·学术论文·deepseek·aiwritepaper