提示词工程

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

相关推荐
数据智能老司机8 小时前
使用 ChatGPT 构建网站——创建并部署你的第一个网页
chatgpt·vibecoding
陈敬雷-充电了么-CEO兼CTO2 天前
深度拆解判别式推荐大模型RankGPT!生成式精排落地提速94.8%,冷启动效果飙升,还解决了传统推荐3大痛点
大数据·人工智能·机器学习·chatgpt·大模型·推荐算法·agi
有才不一定有德2 天前
多代理系统架构:Supervisor 与 Swarm 架构详解
人工智能·chatgpt·架构·系统架构
不老刘2 天前
《生成式AI消费级应用Top 100——第五版》| a16z
人工智能·ai·chatgpt·a16z
MarkHD4 天前
AI提示词30天入门培训计划
人工智能·chatgpt
溯源0064 天前
【deepseek问答记录】:chatGPT的参数数量和上下文长度有关系吗?
人工智能·深度学习·chatgpt
深度学习机器6 天前
aisuite:统一的大模型SDK,简化LLM开发流程
chatgpt·llm·openai
W-GEO6 天前
GEO优化策略:AI搜索引擎的“动态响应”与GEO优化公司的实时优化能力
大数据·人工智能·chatgpt
GEO_JYB6 天前
2025生成式引擎优化(GEO)技术研究报告:技术演进、行业应用与服务商能力选择指南
人工智能·chatgpt
It_张7 天前
Building Systems with the ChatGPT API 使用 ChatGPT API 搭建系统(第五章学习笔记及总结)
笔记·学习·chatgpt