提示词工程

什么是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.

相关推荐
asyxchenchong8881 小时前
ChatGPT、DeepSeek等大语言模型助力高效办公、论文与项目撰写、数据分析、机器学习与深度学习建模
机器学习·语言模型·chatgpt
赛丽曼21 小时前
Assistant API的原理及应用
人工智能·chatgpt
c++服务器开发2 天前
一文详解Character AI:实用指南+ ChatGPT、Gemini对比分析
人工智能·chatgpt
香宝的最强后援XD2 天前
Cursor无限邮箱续费方法
语言模型·chatgpt·文心一言
明似水12 天前
ChatGPT:人工智能对话革命的里程碑与未来展望
人工智能·chatgpt
伊泽瑞尔12 天前
打造极致聊天体验:uz-chat——全端AI聊天组件来了!
后端·chatgpt·openai
小虎卫远程打卡app13 天前
自动驾驶避障思考
人工智能·chatgpt·自动驾驶
白云如幻13 天前
最新免费使用GPT4.0大模型、deepseek-r1、claude-3-7,GPT-4o AI绘画,有这一个网站就够了
chatgpt·aigc·deepseek
中國龍在廣州15 天前
AI之初,性本?
人工智能·科技·深度学习·机器学习·chatgpt·机器人
中國龍在廣州16 天前
ChatGPT上瘾,大脑萎缩47%!?
人工智能·科技·机器学习·chatgpt·机器人