登录 注册

prompt-eng-interactive-tutorial

去点 Star
内容创作与媒体工具教育与学习AI 模型与开发框架
39,193
Stars
4,345
Forks
376
Watchers
64
Open Issues
未知
许可证
Jupyter Notebook
语言
2024-04-02
创建时间
2026-08-28
最近更新

项目能做什么

Anthropic 官方推出的交互式 Prompt 工程教学教程。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Welcome to Anthropic's Prompt Engineering Interactive Tutorial

## Course introduction and goals

This course is intended to provide you with a comprehensive step-by-step understanding of how to engineer optimal prompts within Claude.

**After completing this course, you will be able to**:
- Master the basic structure of a good prompt 
- Recognize common failure modes and learn the '80/20' techniques to address them
- Understand Claude's strengths and weaknesses
- Build strong prompts from scratch for common use cases

## Course structure and content

This course is structured to allow you many chances to practice writing and troubleshooting prompts yourself. The course is broken up into **9 chapters with accompanying exercises**, as well as an appendix of even more advanced methods. It is intended for you to **work through the course in chapter order**. 

**Each lesson has an "Example Playground" area** at the bottom where you are free to experiment with the examples in the lesson and see for yourself how changing prompts can change Claude's responses. There is also an [answer key](https://docs.google.com/spreadsheets/d/1jIxjzUWG-6xBVIa2ay6yDpLyeuOh_hR_ZB75a47KX_E/edit?usp=sharing).

Note: This tutorial uses our smallest, fastest, and cheapest model, Claude 3 Haiku. Anthropic has [two other models](https://docs.anthropic.com/claude/docs/models-overview), Claude 3 Sonnet and Claude 3 Opus, which are more intelligent than Haiku, with Opus being the most intelligent.

*This tutorial also exists on [Google Sheets using Anthropic's Claude for Sheets extension](https://docs.google.com/spreadsheets/d/19jzLgRruG9kjUQNKtCg1ZjdD6l6weA6qRXG5zLIAhC8/edit?usp=sharing). We recommend using that version as it is more user friendly.*

When you are ready to begin, go to `01_Basic Prompt Structure` to proceed.

## Table of Contents

Each chapter consists of a lesson and a set of exercises.

### Beginner
- **Chapter 1:** Basic Prompt Structure

- **Chapter 2:** Being Clear and Direct  

- **Chapter 3:** Assigning Roles

### Intermediate 
- **Chapter 4:** Separating Data from Instructions

- **Chapter 5:** Formatting Output & Speaking for Claude

- **Chapter 6:** Precognition (Thinking Step by Step)

- **Chapter 7:** Using Examples

### Advanced
- **Chapter 8:** Avoiding Hallucinations

- **Chapter 9:** Building Complex Prompts (Industry Use Cases)
  - Complex Prompts from Scratch - Chatbot
  - Complex Prompts for Legal Services
  - **Exercise:** Complex Prompts for Financial Services
  - **Exercise:** Complex Prompts for Coding
  - Congratulations & Next Steps

- **Appendix:** Beyond Standard Prompting
  - Chaining Prompts
  - Tool Use
  - Search & Retrieval
阅读完整原文

商业机会分析 AI 生成

交互式 Web 化 Prompt 关卡挑战与认证平台

产品构想将 Jupyter Notebook 形式的静态/本地教程改造为无需用户配置 API Key 与 Python 环境的沉浸式 Web 闯关学习平台,提供即时评估评分与技能微认证。
核心功能开箱即用免配环境的 Claude 沙盒练习器;针对教程各章节设计的任务关卡(如 XML 标签运用、Few-shot、防越狱);自动化打分反馈系统;学习成就与徽章证书认证。
目标用户初中级大模型开发者、转型 AI 的非技术人员及企业培训员工
难度/周期低至中 · 3 - 5 周 · 成本:极低(主要是 Vercel/Next.js 托管 + 练习过程产生的 Claude API 调用成本)
收费模式免费增值模式(前几关免费体验,高级关卡与最终结业证书一次性买断或月度订阅)
竞争风险用户在平台通过高频无意义调用消耗昂贵模型 API Token 带来亏损风险;教程内容受官方更新影响需持续维护。
依据 数据支持的判断

面向中小团队的 Claude Prompt 单元测试与评测 SaaS

产品构想基于教程中的最佳工程实践,打造轻量级的 Prompt 评测与版本对比工具,帮助团队在模型迭代(如 Sonnet/Opus 切换)时进行自动化回归测试。
核心功能测试用例管理与导入导出;支持针对同一 Prompt 的 Claude 系列模型输出并行对比;打分与幻觉检测指标库;Git 风格的 Prompt 版本变更追踪。
目标用户正在将 Claude 接入商业产品的技术初创团队、独立开发者
难度/周期中等 · 6 - 8 周 · 成本:低(基础云服务基础设施、数据库与少额 API 测试预算)
收费模式SaaS 阶梯订阅制(按测试用例规模、团队席位与每月评测跑批次数计费)
竞争风险市场已有 LangSmith、Promptfoo 等成熟评测框架,若无极致的轻量化与 Claude 针对性优化,获客阻力大(推测)。
依据 尚需验证的假设

Claude 风格 Prompt 自动诊断与重构插件/工具

产品构想根据 Anthropic 官方推荐的规范(结构化 XML 标记、角色设定、思维链指示),自动分析用户的普通 Prompt 并一键重构成高表现力的 Claude 适配版本。
核心功能Prompt 坏味道检测(模糊指示、缺乏格式约束等);一键遵循 Anthropic 规范重构(XML 标签插入、前置条件约束);输入输出 Token 消耗评估;优化前后生成效果 A/B 预览。
目标用户频繁使用 Claude 网页端/API 进行生产开发的内容创作者、提示词工程师
难度/周期低 · 2 - 4 周 · 成本:极低(以浏览器插件或极简 Web 页面为主)
收费模式按优化次数额度包或 Pro 会员买断制(提供高级模版库与批量重构功能)
竞争风险官方大模型基座理解能力不断进化后,对细致 Prompt 技巧的依赖度可能呈现下降趋势(推测)。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
ivanfioravanti/prompt-eng-ollama-interactive-tutorial 中文介绍暂未生成
Ollama's Interactive Prompt Engineering Tutorial
267 Jupyter Notebook
tranzwalle/prompt_builder 中文介绍暂未生成
基于 [Anthropic 的 Interactive Prompt Engineering Tutorial](htt
16 Python
isaccanedo/prompt-eng-interactive-tutorial 中文介绍暂未生成
:fire: Anthropic's Interactive Prompt Engineering Tutorial
4 Jupyter Notebook
Shrijeeth/prompt-eng-interactive-tutorial-qwen 中文介绍暂未生成
2 Jupyter Notebook
nikolas-sapa/prompt-eng-interactive-tutorial 中文介绍暂未生成
Anthropic prompt engineering interactive tutorial
1 Jupyter Notebook
trendinux/prompt-eng-interactive-tutorial 中文介绍暂未生成
Anthropic's Interactive Prompt Engineering Tutorial
1 -
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2024-04-02,最近推送 2026-08-28
社区活跃Star 39,193 / Fork 4,345 / Issue 64(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/anthropics/prompt-eng-interactive-tutorial.git
cd prompt-eng-interactive-tutorial
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。