地区化和数据驻留

Agent Assist 提供数据驻留功能,可将您的静态数据实际保留在指定的地理区域或位置内。您指定区域后,您的静态数据不会存储在该区域之外。核心 Agent Assist 资源存储在您选择的单个区域中。所有区域的价格均相同。

在以下用例中,指定区域特别有用:

  • 您的系统有一些法规或政策要求,这些要求规定了您的数据必须存放的位置。
  • 如果数据位于客户所在的区域,网络延迟可能会有所降低。例如,如果比利时客户使用 europe-west1,则可以预期延迟时间会更短。

可用区域

国家/地区分组 地理位置 区域 ID 数据存储区地区 ID
美洲 爱荷华 us-central1 us(多区域)
美洲 南卡罗来纳 us-east1 us(多区域)
美洲 俄勒冈 us-west1 us(多区域)
美洲 蒙特利尔 northamerica-northeast1 global(多区域)
美洲 美国多区域 us * us(多区域)*
欧洲 比利时 europe-west1 eu(多区域)
欧洲 伦敦 europe-west2 eu(多区域)
欧洲 法兰克福 europe-west3 eu(多区域)
欧洲 埃姆斯哈文 europe-west4 eu(多区域)
欧洲 苏黎世 europe-west6 eu(多区域)
亚太地区 新加坡 asia-southeast1 global(多区域)
亚太地区 雅加达 asia-southeast2 global(多区域)
亚太地区 东京 asia-northeast1 global(多区域)
亚太地区 孟买 asia-south1 global(多区域)
亚太地区 悉尼 australia-southeast1 global(多区域)
全球 全球多区域(全球服务,静态数据位于美国) global(首选)或无区域(默认)¶ global(多区域)¶

区域级传送的可用功能

区域 ID Companion Agent Summarization 自定义栏目 v6.0/5.0/4.0 摘要自动评估 情感分析 (v3) (主动型)生成式知识助理 构建您自己的辅助功能(预览版) AI 教练
us-central1 ✓ ✓ ✓ ✓ ✓ ✓ ✓
us-east1 ✓ ✓ ✓ ✓ ✓ ✓ ✓
us-west1 ✓ ✓ ✓ ✓ ✓ ✓ ✓
us ✓ ✓ ✓ ✓ ✓ ✓
northamerica-northeast1 ✓ ✓ ✓ ✓ ✓ ✓ ✓
europe-west1 ✓ ✓ ✓ ✓ ✓ ✓ ✓
europe-west2 ✓ ✓ ✓ ✓ ✓ ✓ ✓
europe-west3 ✓ ✓ ✓ ✓ ✓ ✓ ✓
europe-west4 ✓ ✓ ✓ ✓ ✓ ✓ ✓
europe-west6 ✓ ✓ ✓ ✓ ✓ ✓
asia-southeast1 ✓ ✓ ✓ ✓ ✓ ✓ ✓
asia-southeast2 ✓ ✓ ✓ ✓ ✓ ✓
asia-northeast1 ✓ ✓ ✓ ✓ ✓ ✓ ✓
asia-south1 ✓ ✓ ✓ ✓ ✓ ✓ ✓
australia-southeast1 ✓ ✓ ✓ ✓ ✓ ✓ ✓
global ✓ ✓ ✓ ✓ ✓ ✓ ✓

存储中的数据(静态数据)

所有 Agent Assist 开发者用户和最终用户数据都包含在静态数据中。例如:

限制

存在以下限制:

使用 API 指定区域

如需使用区域化功能,您必须为每个 API 请求指定一个区域。

必填字段:

  • 为 location 网址路径参数提供区域 ID。

  • 对于 global 区域,请使用 dialogflow.googleapis.com 作为主机名。对于所有其他区域,请使用 [region-id]-dialogflow.googleapis.com 作为主机名。

例如:

  • dialogflow.googleapis.com/v2/projects/project_id/locations/global/knowledgeBases/knowledge_base_id

  • us-central1-dialogflow.googleapis.com/v2/projects/project_id/locations/us-central1/knowledgeBases/knowledge_base_id

如需使用客户端库,需要执行以下步骤:

  • 将服务端点设置为:REGION_ID-dialogflow.googleapis.com。
  • 使用正确的位置设置资源名称,例如:

    projects/project_id/locations/region_id/knowledgeBases/knowledge_base_id
    

凭据

我们建议您使用 GOOGLE_APPLICATION_CREDENTIALS 环境变量为客户端库提供凭据。如需详细了解如何设置此变量,请参阅 Dialogflow 设置说明。

如果您需要在代码中提供手动凭据,则需要执行一个额外的步骤,然后才能调用区域化端点。生成身份验证凭证时,您必须将范围设置为 https://www.googleapis.com/auth/cloud-platform。以下示例演示了在创建 GoogleCredentials 对象时如何在 Java 中执行此操作:

    GoogleCredentials.fromStream(new FileInputStream("credential_file"))
      .createScoped("https://www.googleapis.com/auth/cloud-platform")

Cloud Logging

请参阅 Cloud Logging 文档,了解如何控制日志的存储区域。