Mulai menggunakan Human-in-the-Loop
Panduan memulai ini memperkenalkan Anda pada Human-in-the-Loop. Dalam panduan memulai ini, Anda akan menggunakan konsol Google Cloud untuk menyiapkan project dan otorisasi Google Cloud , membuat pemroses, lalu mengaktifkan Peninjauan oleh Manusia di pemroses tersebut.
Untuk mengikuti panduan langkah demi langkah tugas ini langsung di Google Cloud konsol, klik Pandu saya:
Sebelum memulai
- 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.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
-
Enable the Document AI, Cloud Storage, Vertex AI APIs.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission. Learn how to grant roles. -
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
-
Enable the Document AI, Cloud Storage, Vertex AI APIs.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission. Learn how to grant roles. Di Google Cloud menu navigasi konsol, klik Document AI, lalu pilih Processor Gallery. Galeri Pemroses
Di Galeri Prosesor,
cari Invoice Parser, lalu pilih Buat.Di menu
Buat pemroses , masukkan nama untuk pemroses Anda, misalnyamy-invoice-processor.Pilih wilayah yang terdekat dengan Anda.
Klik Buat. Anda akan diarahkan ke halaman detail pemroses yang baru dibuat.
Buka tab
Human-in-the-Loop di halaman prosesor Anda.Pilih
Konfigurasi Human-in-the-Loop
Dalam daftar
Pilih spesialis , pilih Gunakan spesialis saya sendiri.Di daftar
Labeler Pool , pilih New Specialist Pool.
Di dialog pop-up, masukkan
Nama pool , misalnyaMy Labeler Pool.
Masukkan alamat email Anda untuk Pengelola kumpulan dan Spesialis.
Klik Buat Kumpulan. Proses ini akan memerlukan waktu beberapa detik.
(Opsional) Centang kotak
Aktifkan Penugasan Otomatis .Centang kotak
Konfirmasi biaya .Di bagian
Tetapkan filter pilih Filter tingkat dokumen.- (Opsional) Anda juga dapat menetapkan Filter tingkat label untuk memfilter berdasarkan masing-masing kolom.
Tetapkan
Confidence threshold ke 100%. Tindakan ini akan mengirim semua dokumen yang diprediksi untuk Peninjauan Manual.
Di bagian Tambahkan petunjuk, masukkan jalur Cloud Storage berikut di kolom
Lokasi petunjuk .Ini adalah PDF yang berisi petunjuk siap pakai untuk Invoice Parser. Anda juga dapat membuat petunjuk Anda sendiri jika diinginkan.
cloud-samples-data/documentai/labeling-instructions/pretrained-invoice-v1.3-2022-07-15.pdfDi kolom
Lokasi hasil , pilih atau buat bucket untuk output Peninjauan Manusia.Klik tombol
Simpan Konfigurasi . Proses ini akan memerlukan waktu beberapa detik hingga selesai.
Setelah konfigurasi selesai, pilih tombol geser
Aktifkan Human-in-the-Loop .
Pilih
Aktifkan dari dialog pop-up.Setelah mengonfigurasi Peninjauan Manusia, Anda akan menerima email yang mirip dengan berikut ini:
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 TeamIkuti petunjuk di Menyelesaikan Tugas Peninjauan dan Mengelola Tugas Pemberian Label untuk menggunakan konsol Peninjauan Manual.
- Selesaikan tugas peninjauan menggunakan konsol pelabel.
- Lihat daftar dan deskripsi prosesor yang tersedia saat ini.
Membuat pemroses
Catatan: Alur kerja Peninjauan oleh Manusia didukung untuk pemroses yang tercantum di halaman ringkasan.
Mengaktifkan Peninjauan Manual di pemroses
Anda telah berhasil mengonfigurasi Human-in-the-Loop di Invoice Parser.