本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
优化提示
Amazon Bedrock 提供了一种用于优化提示的工具。优化过程会重写提示,来生成更适合您的使用案例的推理结果。您可以选择要为其优化提示的模型,然后生成修改后的提示。
在您提交提示进行优化后,Amazon Bedrock 会分析提示的组成部分。如果分析成功,它会重写提示。您随后可以复制并使用优化后的提示的文本。
注意
为了获得最佳效果,建议使用英语优化提示。
提示优化支持的区域和模型
下表显示了模型对提示优化的支持:
| Provider | 模型 | 模型 ID | 支持单区域模型 |
|---|---|---|---|
| Amazon | Nova Lite | 亚马逊。 nova-lite-v1:0 |
ap-southeast-2 eu-west-2 us-east-1 |
| Amazon | Nova Micro | 亚马逊。 nova-micro-v1:0 |
ap-southeast-2 eu-west-2 us-east-1 |
| Amazon | Nova Premier | 亚马逊。 nova-premier-v1:0 | |
| Amazon | Nova Pro | 亚马逊。 nova-pro-v1:0 |
ap-southeast-2 eu-west-2 us-east-1 |
| Anthropic | Claude 3 Haiku | anthropic.claude-3-haiku-20240307-v1:0 |
ap-south-1 ap-southeast-2 ca-central-1 eu-central-1 eu-west-1 eu-west-2 eu-west-3 sa-east-1 us-east-1 us-west-2 |
| Anthropic | Claude 3 Opus | anthropic.claude-3-opus-20240229-v 1:0 |
us-west-2 |
| Anthropic | Claude 3 Sonnet | anthropic.claude-3-sonnet-20240229-v1:0 |
ap-south-1 ap-southeast-2 ca-central-1 eu-central-1 eu-west-1 eu-west-2 eu-west-3 sa-east-1 us-east-1 us-west-2 |
| Anthropic | Claude 3.5 Haiku | anthropic.claude-3-5-haiku-20241022-v1:0 |
us-west-2 |
| Anthropic | Claude 3.5 Sonnet | anthropic.claude-3-5-sonnet-20240620-v1:0 |
eu-central-1 us-east-1 us-west-2 |
| Anthropic | Claude 3.5 Sonnet v2 | anthropic.claude-3-5-sonnet-20241022-v2:0 |
ap-southeast-2 us-west-2 |
| Anthropic | Claude 3.7 Sonnet | anthropic.claude-3-7-sonnet-20250219-v1:0 |
eu-west-2 |
| Anthropic | Claude Opus 4 | anthropic.claude-opus-4-20250514-v1:0 | |
| Anthropic | Claude Sonnet 4 | anthropic.claude-sonnet-4-20250514-v1:0 | |
| DeepSeek | DeepSeek-R1 | deepseek.r1-v1:0 | |
| Meta | Llama 3 70B Instruct | meta.llama3-70 1:0 b-instruct-v |
ap-south-1 ca-central-1 eu-west-2 us-east-1 us-west-2 |
| Meta | Llama 3.1 70B Instruct | meta.llama3-1-70 1:0 b-instruct-v |
us-west-2 |
| Meta | Llama 3.2 11B Instruct | meta.llama3-2-11 1:0 b-instruct-v | |
| Meta | Llama 3.3 70B Instruct | meta.llama3-3-70 1:0 b-instruct-v | |
| Meta | Llama 4 Maverick 17B Instruct | meta.llama4-maverick b-instruct-v -17 1:0 | |
| Meta | Llama 4 Scout 17B Instruct | meta.llama4-scout b-instruct-v -17 1:0 | |
| Mistral AI | Mistral Large(24.02) | mistral.mistral-large-2402-v1:0 |
ap-south-1 ap-southeast-2 ca-central-1 eu-west-1 eu-west-2 eu-west-3 sa-east-1 us-east-1 us-west-2 |
| Mistral AI | Mistral Large(24.07) | mistral.mistral-large-2407-v1:0 |
us-west-2 |
提交提示进行优化
要了解如何优化提示,请选择与您的首选方法对应的选项卡,然后按照以下步骤操作: