Loading...
    • 开发者指南
    • API 参考
    • MCP
    • 资源
    • 发布说明
    Search...
    ⌘K

    第一步

    Claude 简介快速开始

    模型与定价

    模型概览选择模型Claude 4.5 的新功能迁移到 Claude 4.5模型弃用定价

    使用 Claude 构建

    功能概览使用 Messages API上下文窗口提示词最佳实践

    功能

    提示词缓存上下文编辑扩展思考流式消息批处理引用多语言支持Token 计数嵌入向量视觉PDF 支持Files API搜索结果Google Sheets 插件

    工具

    概述如何实现工具使用令牌高效的工具使用细粒度工具流式传输Bash 工具代码执行工具计算机使用工具文本编辑器工具Web fetch 工具网络搜索工具记忆工具

    代理技能

    概述在 API 中开始使用 Agent Skills技能创作最佳实践通过 API 使用 Agent Skills

    Agent SDK

    概览TypeScript SDKPython SDK

    指南

    流式输入处理权限会话管理托管 Agent SDK修改系统提示词SDK 中的 MCP自定义工具SDK 中的子代理SDK 中的斜杠命令SDK 中的代理技能跟踪成本和使用情况待办事项列表SDK 中的插件

    API 中的 MCP

    MCP 连接器远程 MCP 服务器

    Claude 在第三方平台上

    Amazon BedrockVertex AI

    提示词工程

    概述提示词生成器使用提示模板提示词改进器保持清晰和直接使用示例(多示例提示)让 Claude 思考(思维链)使用XML标签给Claude分配角色(系统提示)预填充 Claude 的响应链式复杂提示长文本技巧扩展思考技巧

    测试与评估

    定义成功标准开发测试用例使用评估工具减少延迟

    加强防护措施

    减少幻觉提高输出一致性缓解越狱handle-streaming-refusals减少提示词泄露保持Claude的角色特征

    管理和监控

    Admin API 概述使用量和成本 APIClaude Code 分析 API
    Console
    功能

    多语言支持

    Claude 在多种语言的任务中表现出色,相对于英语保持强大的跨语言性能。

    概述

    Claude 展示了强大的多语言能力,特别是在跨语言的零样本任务中表现出色。该模型在广泛使用的语言和低资源语言中都保持一致的相对性能,使其成为多语言应用的可靠选择。

    请注意,Claude 能够处理许多超出下面基准测试范围的语言。我们鼓励您使用与您特定用例相关的任何语言进行测试。

    性能数据

    以下是 Claude 4、Claude 3.7 Sonnet 和 Claude 3.5 模型在不同语言中的零样本链式思维评估分数,显示为相对于英语性能的百分比(100%):

    语言Claude Opus 41Claude Sonnet 41Claude Sonnet 3.7 (已弃用)1Claude Haiku 3.5
    英语(基准,固定为 100%)100%100%100%100%
    西班牙语98.0%97.5%97.6%94.6%
    葡萄牙语(巴西)97.3%97.2%97.3%94.6%
    意大利语97.5%97.3%97.2%95.0%
    法语97.7%97.1%96.9%95.3%
    印度尼西亚语97.2%96.2%96.3%91.2%
    德语97.1%94.7%96.2%92.5%
    阿拉伯语96.9%96.1%95.4%84.7%
    中文(简体)96.7%95.9%95.3%90.9%
    韩语96.4%95.9%95.2%89.1%
    日语96.2%95.6%95.0%90.8%
    印地语96.7%95.8%94.2%80.1%
    孟加拉语95.2%94.4%92.4%72.9%
    斯瓦希里语89.5%87.1%89.2%64.7%
    约鲁巴语78.9%76.4%76.7%46.1%

    1 使用扩展思维。

    这些指标基于 MMLU(大规模多任务语言理解)英语测试集,由专业人工翻译人员翻译成 14 种其他语言,如 OpenAI 的 simple-evals 存储库所记录。使用人工翻译人员进行此评估可确保高质量的翻译,这对于数字资源较少的语言尤其重要。


    最佳实践

    在处理多语言内容时:

    1. 提供清晰的语言上下文:虽然 Claude 可以自动检测目标语言,但明确说明所需的输入/输出语言可以提高可靠性。为了增强流畅性,您可以提示 Claude 使用"像母语使用者一样的习语表达"。
    2. 使用本地文字:以本地文字而非音译形式提交文本以获得最佳结果
    3. 考虑文化背景:有效的沟通通常需要超越纯粹翻译的文化和地区意识

    我们还建议遵循我们的一般提示工程指南以更好地提高 Claude 的性能。


    语言支持注意事项

    • Claude 可以处理使用标准 Unicode 字符的大多数世界语言的输入和生成输出
    • 性能因语言而异,在广泛使用的语言中具有特别强大的能力
    • 即使在数字资源较少的语言中,Claude 也能保持有意义的能力

    提示工程指南

    掌握提示制作的艺术,充分利用 Claude。

    提示库

    查找各种任务和行业的预制提示。非常适合获得灵感或快速开始。

      © 2025 ANTHROPIC PBC

      Products

      • Claude
      • Claude Code
      • Max plan
      • Team plan
      • Enterprise plan
      • Download app
      • Pricing
      • Log in

      Features

      • Claude and Slack
      • Claude in Excel

      Models

      • Opus
      • Sonnet
      • Haiku

      Solutions

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

      Claude Developer Platform

      • Overview
      • Developer docs
      • Pricing
      • Amazon Bedrock
      • Google Cloud’s Vertex AI
      • Console login

      Learn

      • Blog
      • Catalog
      • 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

      Help and security

      • Availability
      • Status
      • Support center

      Terms and policies

      • Privacy policy
      • Responsible disclosure policy
      • Terms of service: Commercial
      • Terms of service: Consumer
      • Usage policy

      Products

      • Claude
      • Claude Code
      • Max plan
      • Team plan
      • Enterprise plan
      • Download app
      • Pricing
      • Log in

      Features

      • Claude and Slack
      • Claude in Excel

      Models

      • Opus
      • Sonnet
      • Haiku

      Solutions

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

      Claude Developer Platform

      • Overview
      • Developer docs
      • Pricing
      • Amazon Bedrock
      • Google Cloud’s Vertex AI
      • Console login

      Learn

      • Blog
      • Catalog
      • 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

      Help and security

      • Availability
      • Status
      • Support center

      Terms and policies

      • Privacy policy
      • Responsible disclosure policy
      • Terms of service: Commercial
      • Terms of service: Consumer
      • Usage policy
      © 2025 ANTHROPIC PBC