开始使用人机协同

本快速入门介绍人机协同 (Human-in-the-Loop)。在本快速入门中,您将使用 Google Cloud 控制台来设置 Google Cloud 项目和授权、创建处理方,然后针对该处理方启用人工审核。


如需在 Google Cloud 控制台中直接遵循有关此任务的分步指导,请点击操作演示

操作演示


准备工作

  1. Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  3. Make sure that billing is enabled for your Google Cloud project.

  4. Enable the Document AI, Cloud Storage, Vertex AI APIs.

    Enable the APIs

  5. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  6. Make sure that billing is enabled for your Google Cloud project.

  7. Enable the Document AI, Cloud Storage, Vertex AI APIs.

    Enable the APIs

创建处理器

注意概览页面上列出的处理器支持人工审核工作流。

  1. 在 Google Cloud 控制台导航菜单中,点击 Document AI 并选择 Processor Gallery处理器库

  2. 处理器库中,搜索账单解析器,然后选择创建

  3. 创建处理器菜单中,输入处理器的名称,例如 my-invoice-processor

  4. 选择离您最近的区域。

  5. 点击创建。您将转到新创建的处理器的详情页面。

在处理器上启用人工审核

  1. 转到处理器的人机协同 (Human-in-the-Loop) 标签页。

  2. 选择配置人机协同 (Human-in-the-Loop)

    图片

  3. 选择专家列表中,选择使用我自己的专家

  4. 标签添加者池列表中,选择新建专家池

    图片

  5. 在弹出式对话框中,输入池名称,例如 My Labeler Pool

    图片

  6. 输入池管理员专家的电子邮件地址。

  7. 点击 Create Pool(创建池)。完成此操作需要几秒钟时间。

  8. (可选)勾选启用自动分配框。

  9. 勾选确认扣款框。

  10. 设置过滤条件部分中,选择文档级过滤条件

    1. (可选)您还可以设置标签级过滤条件,以根据各个字段进行过滤。
  11. 置信度阈值设置为 100%。此操作会发送所有预测的文档以供人工审核。

    验证方法

  12. 添加说明部分的说明位置字段中,输入以下 Cloud Storage 路径。

    这是一个 PDF 文件,其中包含针对账单解析器的预制说明。如果需要,您还可以创建您自己的说明

    cloud-samples-data/documentai/labeling-instructions/pretrained-invoice-v1.3-2022-07-15.pdf
    
  13. 结果位置字段中,选择或创建人工审核输出的存储桶。

  14. 点击保存配置按钮。完成此操作需要几秒钟时间。

    图片

  15. 配置完成后,选择启用人机协同 (Human-in-the-Loop) 滑块。

    图片

  16. 从弹出式对话框中选择启用

您已成功为账单解析器配置人机协同 (Human-in-the-Loop)。

(可选)管理标签任务

  1. 配置人工审核后,您应该会收到类似于以下内容的电子邮件:

    From: AI Platform <noreply-aiplatform@google.com>\
    Subject: Added to AI Platform SpecialistPool Test Labeler Group
    
    Hello AI Platform Customer,
    
    You are added as a manager to specialist pool
    cloudml_data_specialists_us_central1_785484070008756xxxx.
    To view details, visit Manager console
    https://datacompute.google.com/cm/
    
    Sincerely,
    The Google Cloud AI Team
    
  2. 请按照完成审核任务管理标签任务中的说明使用人工审核控制台。

后续步骤