Prompt-Engineering-Guide
79,988
Stars
8,778
Forks
752
Watchers
298
Open Issues
MIT
许可证
MDX
语言
2022-12-16
创建时间
2026-03-11
最近更新
项目能做什么
涵盖 Prompt 工程、上下文工程、RAG 与 AI Agent 的全套指南、论文及学习资源。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Prompt Engineering Guide <h5 align="center"> Sponsored by <a href="https://serpapi.com/"><img src="https://cdn.rawgit.com/standard/standard/master/docs/logos/serpapi.png" height=35 valign="middle"></a> </h5> Prompt engineering is a relatively new discipline for developing and optimizing prompts to efficiently use language models (LMs) for a wide variety of applications and research topics. Prompt engineering skills help to better understand the capabilities and limitations of large language models (LLMs). Researchers use prompt engineering to improve the capacity of LLMs on a wide range of common and complex tasks such as question answering and arithmetic reasoning. Developers use prompt engineering to design robust and effective prompting techniques that interface with LLMs and other tools. Motivated by the high interest in developing with LLMs, we have created this new prompt engineering guide that contains all the latest papers, learning guides, lectures, references, and tools related to prompt engineering for LLMs. 🌐 [Prompt Engineering Guide (Web Version)](https://www.promptingguide.ai/) 🎉 We are excited to launch our new prompt engineering, RAG, and AI Agents courses under the DAIR.AI Academy. [Join Now](https://academy.dair.ai/pricing)! The courses are meant to compliment this guide and provide a more hands-on approach to learning about prompt engineering, context engineering, and AI Agents. Use code PROMPTING20 to get an extra 20% off. Happy Prompting! --- ## Announcements / Updates - 🎓 We now offer self-paced prompt engineering courses under our DAIR.AI Academy. [Join Now](https://academy.dair.ai/pricing)! - 🎓 New course on Prompt Engineering for LLMs announced! [Enroll here](https://academy.dair.ai/courses/introduction-prompt-engineering)! - 💼 We now offer several [services](https://www.promptingguide.ai/services) like corporate training, consulting, and talks. - 🌐 We now support 13 languages! Welcoming more translations. - 👩🎓 We crossed 3 million learners in January 2024! - 🎉 We have launched a new web version of the guide [here](https://www.promptingguide.ai/) - 🔥 We reached #1 on Hacker News on 21 Feb 2023 - 🎉 The First Prompt Engineering Lecture went live [here](https://youtu.be/dOxUroR57xs) [Join our Discord](https://discord.gg/YbMT8k6GfX) [Follow us on Twitter](https://twitter.com/dair_ai) [Subscribe to our YouTube](https://www.youtube.com/channel/UCyna_OxOWL7IEuOwb7WhmxQ) [Subscribe to our Newsletter](https://nlpnews.substack.com/) --- ## Guides You can also find the most up-to-date guides on our new website [https://www.promptingguide.ai/](https://www.promptingguide.ai/). - [Prompt Engineering - Introduction](https://www.promptingguide.ai/introduction) - [Prompt Engineering - LLM Settings](https://www.promptingguide.ai/introduction/settings) - [Prompt Engineering - Basics of Prompting](https://www.promptingguide.ai/introduction/basics) - [Prompt Engineering - Prompt Elements](阅读完整原文
商业机会分析 AI 生成
LLM/Agent工程专项实战课程与认证学院
| 产品构想 | 基于庞大流量池,提供深度实战、代码驱动的高阶视频课程,并配套项目作业与结业认证。 |
| 核心功能 | 交互式Notebook实战教学、RAG进阶与Agent架构演进专栏、专属答疑社区、可验证的技能证书。 |
| 目标用户 | 希望向AI工程转型的传统程序员、AI产品经理、高校学生。 |
| 难度/周期 | 中等 · 1-2个月 · 成本:课程录制设备成本、LMS平台托管费用、API调试测试成本(月度约100-300美元)。 |
| 收费模式 | 单门课程买断制(99-299美元)或年度全站会员订阅(如README中已有的academy.dair.ai)。 |
| 竞争风险 | AI技术迭代极快导致课程内容迅速过时,需要持续维护;在线教育同质化竞争严重。 |
| 依据 | 已验证事实 |
企业级提示工程内训与落地咨询服务
| 产品构想 | 面向正在推进生成式AI落地的企业,提供定制化培训工作坊、Prompt漏洞/安全性排查及业务场景落地咨询。 |
| 核心功能 | 定制业务Prompt架构设计、内训Workshop(Prompt/RAG最佳实践)、红队对抗与Prompt注入防护指导。 |
| 目标用户 | 传统企业IT部门、数字化转型团队、初创公司技术团队。 |
| 难度/周期 | 低至中等 · 2-4周(按交付项目计) · 成本:极低(主要为人力沟通与材料准备时间成本)。 |
| 收费模式 | 按场次收取培训费(如单场3000-10000美元)或按项目收取技术咨询费。 |
| 竞争风险 | 对顾问个人行业经验依赖高,企业采购决策周期长,难以标准化规模化。 |
| 依据 | 已验证事实 |
基于指南规则的开源/SaaS化Prompt评估与自动化优化工具
| 产品构想 | 将指南中的理论(CoT、Self-Consistency、对抗防御等)产品化为CLI工具或轻量SaaS,帮助开发者对Prompt进行自动化打分与单元测试。 |
| 核心功能 | Prompt静态质量检查(遵循度/歧义度)、对抗注入防御检测、自动Few-Shot样本生成、Prompt版本回归评测。 |
| 目标用户 | LLM应用开发者、独立开发者、AI初创团队。 |
| 难度/周期 | 中等至高 · 2-3个月 · 成本:LLM API调用成本、服务器托管费用(月度约200-500美元)。 |
| 收费模式 | Freemium模式:开源轻量CLI,云端托管评测控制台按月订阅(SaaS 19-99美元/月)。 |
| 竞争风险 | 现有评测工具(如Promptfoo、LangSmith等)生态壁垒深厚,转化难度较大。 |
| 依据 | 尚需验证的假设 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| morluto/rea | 中文介绍暂未生成 Reverse engineer anything with agents, from app behavior dow |
452,505 | TypeScript |
| mattpocock/skills | 中文介绍暂未生成 Skills for Real Engineers. Straight from my .agents director |
321,926 | Shell |
| obra/superpowers | 中文介绍暂未生成 An agentic skills framework & software development methodolo |
316,245 | Shell |
| affaan-m/ECC | 中文介绍暂未生成 The agent harness performance optimization system. Skills, i |
301,312 | JavaScript |
| NousResearch/hermes-agent | 中文介绍暂未生成 The agent that grows with you |
262,717 | Python |
| anomalyco/opencode | 中文介绍暂未生成 The open source coding agent. |
226,151 | TypeScript |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2022-12-16,最近推送 2026-03-11 |
| 社区活跃 | Star 79,988 / Fork 8,778 / Issue 298(数据支持,可自行核实) |
| 许可证 | MIT |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/dair-ai/Prompt-Engineering-Guide.git cd Prompt-Engineering-Guide # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。