

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# Titan Embeddings G1-Text v2
<a name="model-card-amazon-titan-text-embeddings-v2-2"></a>

## ![Amazon 徽标带有从 A 到 Z 的弯曲箭头，形成笑容。](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/models/nova2pro.png) Amazon — Titan Embeddings G1-Text v2
<a name="model-card-amazon-titan-text-embeddings-v2-2-header"></a>

## 模型详细信息
<a name="model-card-amazon-titan-text-embeddings-v2-2-details"></a>

型号描述即将推出。
+ **型号停产日期：** N/A
+ **最终用户许可协议和使用条款：**[查看](https://aws.amazon.com/legal/bedrock/third-party-models/)
+ **模型生命周期：**活跃
+ **上下文窗口：**8K 代币


| **输入模式** | **输出模式** | **[支持的 API](https://docs.aws.amazon.com/bedrock/latest/userguide/apis.html)** | **[支持的终端节点](https://docs.aws.amazon.com/bedrock/latest/userguide/endpoints.html)** | 
| --- | --- | --- | --- | 
| ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)音频 | ![](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png)嵌入 | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) Responses | ![](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) bedrock-runtime | 
| ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)图片 | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)图片 | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) Chat Completions | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) bedrock-mantle | 
| ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)演讲 | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)演讲 | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) Invoke |  | 
| ![](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png)文本 | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)文本 | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) Converse |  | 
| ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)视频 | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)视频 |  |  | 

## 定价
<a name="model-card-amazon-titan-text-embeddings-v2-2-pricing"></a>

有关定价，请参阅 [Amazon Bedrock 定价](https://aws.amazon.com/bedrock/pricing/)页面。

## 以编程方式访问
<a name="model-card-amazon-titan-text-embeddings-v2-2-programmatic-access"></a>

使用以下模型 ID 和端点 URL 以编程方式访问此模型。有关可用 API 和终端节点的更多信息，请参阅[支持的 API 和支持的](https://docs.aws.amazon.com/bedrock/latest/userguide/apis.html)[终端节点](https://docs.aws.amazon.com/bedrock/latest/userguide/endpoints.html)。


| **Endpoint** | **型号标识** | **In-Region 端点网址** | **地理推理 ID** | **全局推理 ID** | 
| --- | --- | --- | --- | --- | 
| bedrock-runtime | amazon.titan-embed-g1-text-02 | https://bedrock-runtime.{region}.amazonaws.com | 不支持 | 不支持 | 

*例如，如果区域为 us-east-1（弗吉尼亚北部），则基岩运行时端点 URL 将为 “”，基岩地幔的 URL 将https://bedrock-runtime.us-east-1.amazonaws.com为 “”。https://bedrock-mantle.us-east-1.api.aws/v1*

## 区域可用性
<a name="model-card-amazon-titan-text-embeddings-v2-2-regional-availability"></a>

***地区供应情况一览***

**Bedrock 提供三种推断选项：**In-Region**将请求保留在单个区域内以实现严格合规；在尊重数据驻留的情况下跨地理区域（美国、欧盟等）进行地理 Cross-Region路由，以提高吞吐量；以及**全球任何地方的全球 Cross-Region**路由，以便在没有驻留限制的情况下实现最大吞吐量。**有关更多详细信息，请参阅该[区域可用性](models-region-compatibility.md)页面。


| **区域** | **In-Region** | **Geo** | **Global** | 
| --- | --- | --- | --- | 
| us-east-1（弗吉尼亚北部） | ![](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | 
| us-west-2（俄勒冈州） | ![](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | 

## 配额和限制
<a name="model-card-amazon-titan-text-embeddings-v2-2-quotas"></a>

您的 AWS 账户具有默认配额，用于维持服务性能并确保适当使用 Amazon Bedrock。分配给账户的默认配额可能会根据地区因素、付款历史记录、欺诈性使用情况、[增加配额请求](https://docs.aws.amazon.com/bedrock/latest/userguide/quotas-increase.html)的 and/or 批准而更新。有关更多详细信息，请参阅[Amazon Bedrock 的配额](quotas.md)文档并查看该模型的[限制](https://docs.aws.amazon.com/general/latest/gr/bedrock.html#limits_bedrock)。

## 示例代码
<a name="model-card-amazon-titan-text-embeddings-v2-2-sample-code"></a>

**第 1 步-AWS 账户：**如果您已有 AWS 账户，请跳过此步骤。如果您不熟悉 AWS，请注册一个 A [WS 账户](https://portal.aws.amazon.com/billing/signup)。

**第 2 步-API 密钥：**前往 [Amazon Bedrock 控制台](https://console.aws.amazon.com/bedrock/home#/api-keys/long-term/create)生成长期 API 密钥。

**第 3 步-获取 SDK：**要使用本入门指南，必须已安装 Python。然后根据您使用的 API 安装相关软件。

```
pip install boto3
```

**第 4 步-设置环境变量：**将您的环境配置为使用 API 密钥进行身份验证。

```
AWS_BEARER_TOKEN_BEDROCK="<provide your Bedrock API key>"
```

**第 5 步-运行您的第一个推理请求：**将文件另存为 `bedrock-first-request.py`