Loading...
  • 构建
  • 管理
  • 模型与定价
  • 客户端 SDK
  • API 参考
Search...
⌘K
Log in
概览
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Solutions

  • AI agents
  • Code modernization
  • Coding
  • Customer support
  • Education
  • Financial services
  • Government
  • Life sciences

Partners

  • Amazon Bedrock
  • Google Cloud's Vertex AI

Learn

  • Blog
  • Courses
  • Use cases
  • Connectors
  • Customer stories
  • Engineering at Anthropic
  • Events
  • Powered by Claude
  • Service partners
  • Startups program

Company

  • Anthropic
  • Careers
  • Economic Futures
  • Research
  • News
  • Responsible Scaling Policy
  • Security and compliance
  • Transparency

Learn

  • Blog
  • Courses
  • Use cases
  • Connectors
  • Customer stories
  • Engineering at Anthropic
  • Events
  • Powered by Claude
  • Service partners
  • Startups program

Help and security

  • Availability
  • Status
  • Support
  • Discord

Terms and policies

  • Privacy policy
  • Responsible disclosure policy
  • Terms of service: Commercial
  • Terms of service: Consumer
  • Usage policy
构建/提示工程

提示词工程概述

学习如何优化和改进您的提示词以获得更好的结果

提示词工程之前

本指南假设您已经:

  1. 为您的用例明确定义了成功标准
  2. 有一些方法可以根据这些标准进行实证测试
  3. 有一个您想要改进的初稿提示词

如果没有,我们强烈建议您花时间先建立这些基础。查看定义成功标准和构建评估获取提示和指导。

提示词生成器

没有初稿提示词?试试 Claude Console 中的提示词生成器!

提示词最佳实践

对于 Claude 最新模型的特定模型调优指导,从这里开始。


何时进行提示词工程

本指南重点关注可通过提示词工程控制的成功标准。 并非每个成功标准或失败的评估都最好通过提示词工程来解决。例如,延迟和成本有时可以通过选择不同的模型更容易地改进。


如何进行提示词工程

所有提示词技术——从清晰度和示例到 XML 结构化、角色提示、思考和提示词链——都在提示词最佳实践中介绍。这是一个活跃的参考资料;从这里开始。

Claude Console 还提供提示词工具——提示词生成器、模板和变量以及提示词改进器——帮助您快速构建和完善提示词。


提示词工程教程

如果您是交互式学习者,您可以深入我们的交互式教程!

GitHub 提示词工程教程

一个充满示例的教程,涵盖了我们文档中的提示词工程概念。

Google Sheets 提示词工程教程

通过交互式电子表格提供的我们提示词工程教程的轻量级版本。

Was this page helpful?