对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。

Voyage AI 推理的地区

**地理区** 是一组命名的云提供商区域,Atlas 在其中通过 Embedding and Reranking API 处理您提交用于推理的内容。地理区域不等同于 Atlas 集群运行的云提供商区域。集群区域决定 Atlas 存储您集群数据的位置,而推理地域则决定 Atlas 处理您的推理内容的位置,您可以分别设置每个选项。

当您将模型 API 密钥限定在某一地理区时,使用该密钥的请求将在托管在该地理区内的 Voyage AI 模型上运行。要进一步了解地理概念(包括可用地理区域以及尊重这些地理区域的指定服务),请参阅 Atlas 中的地理区域和指定服务。

作用域端点是一种嵌入和重排序 API 端点,它仅处理来自与其作用域相同的模型 API 密钥的请求。您可以将模型 API 密钥的作用域限定为地理位置或云提供商。您调用的端点必须与密钥的作用域匹配:

  • Geography scope: the key calls the endpoint for that Geography, such as eu.ai.mongodb.com for the Europe Geography. Atlas processes the content that you submit inside that Geography.

  • Cloud provider scope: the key calls the endpoint for that cloud provider. For example, a key scoped to AWS calls aws.ai.mongodb.com, and Atlas serves the request from AWS infrastructure in a supported Geography for that cloud provider. A cloud provider scope constrains the provider that processes your content, not the Geography.

端点
范围

ai.mongodb.com

不受地域限制。Atlas 可以处理来自任何地理位置的任何云提供商的请求。

eu.ai.mongodb.com

欧洲地理

us.ai.mongodb.com

美国地理

aws.ai.mongodb.com

该云提供商目前处于公开预览阶段。Atlas 会将请求路由到该云提供商支持的地理位置内的 AWS 基础设施。未来,每个云提供商支持的地理位置可能会发生变化。

Scoped endpoints follow the pattern <scope>.ai.mongodb.com, where <scope> is the geography or cloud value of the model API key that you send with the request.

要创建不属于地理范围的密钥,将 geography 设置为 any。要了解密钥和终结点如何对应,请参阅 Embedding and Reranking API 概述。

要了解 Geography 的 ACID 一致性保证以及如何决定是否将密钥限定在其中,请参阅 Atlas 中的地理位置和指定服务。

范围终结点不提供服务所有 Voyage AI 模型。模型表的“支持的终结点”列对于每个终结点都提供服务的模型列出 All,对于仅非范围终结点提供服务的模型列出 ai.mongodb.com。

要查看哪些终结点为特定模型提供服务,请参阅 《模型废弃、生命周期状态和支持》。

要了解有关每个模型的更多信息,请参阅Voyage AI 嵌入和重排序模型概述。

要使用地理范围资源,请参阅以下部分: