Mulai menggunakan Gemini Enterprise

Gemini Enterprise menyatukan kemampuan pengambilan informasi yang mendalam, natural language processing yang canggih, dan pemrosesan bahasa besar terbaru untuk memahami niat pengguna dan menampilkan hasil yang paling relevan bagi pengguna.

Sebelum mengikuti tutorial ini, pastikan Anda telah melakukan langkah-langkah di Sebelum memulai.


Untuk mengikuti panduan langkah demi langkah untuk tugas ini langsung di Google Cloud konsol, klik Pandu saya:

Pandu saya


Sebelum memulai

  1. Login keakun Anda. Google Cloud Jika Anda baru menggunakan Google Cloud, buat akun untuk mengevaluasi performa produk kami dalam skenario dunia nyata. Pelanggan baru juga mendapatkan kredit gratis senilai $300 untuk menjalankan, menguji, dan men-deploy workload.
  2. 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 role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  3. Verify that billing is enabled for your Google Cloud project.

  4. Enable the Gemini Enterprise (Discovery Engine), Cloud Storage, Identity and Access Management APIs.

    Roles required to enable APIs

    To enable APIs, you need the Service Usage Admin IAM role (roles/serviceusage.serviceUsageAdmin), which contains the serviceusage.services.enable permission. Learn how to grant roles.

    Enable the APIs

  5. Make sure that you have the following role or roles on the project: Gemini Enterprise Admin

    Check for the roles

    1. In the Google Cloud console, go to the IAM page.

      Go to IAM
    2. Select the project.
    3. In the Principal column, find all rows that identify you or a group that you're included in. To learn which groups you're included in, contact your administrator.

    4. For all rows that specify or include you, check the Role column to see whether the list of roles includes the required roles.

    Grant the roles

    1. In the Google Cloud console, go to the IAM page.

      Go to IAM
    2. Select the project.
    3. Click Grant access.
    4. In the New principals field, enter your user identifier. This is typically the email address for a Google Account.

    5. Click Select a role, then search for the role.
    6. To grant additional roles, click Add another role and add each additional role.
    7. Click Save.
  6. 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 role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  7. Verify that billing is enabled for your Google Cloud project.

  8. Enable the Gemini Enterprise (Discovery Engine), Cloud Storage, Identity and Access Management APIs.

    Roles required to enable APIs

    To enable APIs, you need the Service Usage Admin IAM role (roles/serviceusage.serviceUsageAdmin), which contains the serviceusage.services.enable permission. Learn how to grant roles.

    Enable the APIs

  9. Make sure that you have the following role or roles on the project: Gemini Enterprise Admin

    Check for the roles

    1. In the Google Cloud console, go to the IAM page.

      Go to IAM
    2. Select the project.
    3. In the Principal column, find all rows that identify you or a group that you're included in. To learn which groups you're included in, contact your administrator.

    4. For all rows that specify or include you, check the Role column to see whether the list of roles includes the required roles.

    Grant the roles

    1. In the Google Cloud console, go to the IAM page.

      Go to IAM
    2. Select the project.
    3. Click Grant access.
    4. In the New principals field, enter your user identifier. This is typically the email address for a Google Account.

    5. Click Select a role, then search for the role.
    6. To grant additional roles, click Add another role and add each additional role.
    7. Click Save.

Membuat aplikasi Gemini Enterprise

  1. Di Google Cloud konsol, buka halaman Gemini Enterprise.

    Gemini Enterprise

  2. Klik Create app.

  3. Di bagian Your app name, masukkan nama untuk aplikasi Anda. ID aplikasi akan muncul di bawah nama aplikasi.

  4. Pilih global (Global) sebagai lokasi untuk aplikasi Anda.

  5. Di bagian External name of your company or organization, masukkan nama perusahaan atau organisasi. Untuk tutorial ini, Anda dapat menggunakan Cymbal Bank.

  6. Klik Create.

Setelah aplikasi dibuat, Anda akan dialihkan ke halaman Overview aplikasi.

Membuat penyimpanan data

  1. Di bagian Complete your setup, klik Create Data Store.

  2. Di bagian Cloud Storage, klik Select.

  3. Di bagian Unstructured Data Import (Document Search &RAG), pastikan Documents dipilih.

  4. Di bagian Synchronization frequency, pastikan One time dipilih.

  5. Di bagian Select a folder or a file you want to import, pastikan Folder dipilih.

  6. Masukkan nilai berikut di kolom gs://:

    cloud-samples-data/gen-app-builder/search/cymbal-bank-employee
    

    Bucket Cloud Storage ini berisi file PDF untuk penggunaan internal oleh bank fiktif, Cymbal Bank.

  7. Klik Continue.

  8. Di bagian Your data store name, masukkan nama untuk penyimpanan data Anda, lalu klik Create.

    Konsol akan mengalihkan Anda ke halaman Connected data stores, dan menampilkan penyimpanan data yang baru Anda buat. Google Cloud

Melihat pratinjau aplikasi Anda

  1. Di menu navigasi, klik Overview untuk kembali ke halaman ringkasan.

  2. Di bagian Your Gemini Enterprise webapp is ready, klik link untuk membuka aplikasi web.

  3. Untuk menguji data yang diimpor, klik Connectors dan pastikan Google Search tidak dipilih.

    Tombol Konektor

  4. Di kolom penelusuran, ajukan pertanyaan tentang data yang kami impor; misalnya, ajukan pertanyaan How do I book business travel?

    Jika jawaban atas pertanyaan ini tidak secara khusus merujuk ke Cymbal Bank, tunggu beberapa menit lagi dan coba lagi.

  5. Ajukan pertanyaan tambahan seperti: Who founded Cymbal Bank? atau Where are the headquarters of Cymbal Bank?

Mengonfigurasi aplikasi web penelusuran

  1. Kembali ke Google Cloud konsol.

  2. Di menu navigasi, klik Configurations.

  3. Di tab Search UI, konfigurasi setelan untuk aplikasi penelusuran.

  4. Di bagian Appearance and branding options , ubah logo menjadi logo ini untuk Cymbal Bank.

    https://storage.googleapis.com/cloud-samples-data/gen-app-builder/search/cymbal-bank-logo.png
    
  5. Jika Anda mengubah konfigurasi di tab UI, klik Save and publish.

  6. Buka tab Autocomplete untuk mengonfigurasi setelan tertentu untuk pelengkapan otomatis.

    Tetapkan Enable autocomplete ke Now dan tunggu satu atau dua hari sebelum Anda melihat saran pelengkapan otomatis.

  7. Buka tab Assistant untuk mengonfigurasi setelan untuk asisten penelusuran.

    Di halaman ini, Anda dapat menetapkan petunjuk sistem LLM tambahan, mengaktifkan Model Armor, grounding web, dan setelan lainnya yang terkait dengan asisten default.

Melihat aplikasi web penelusuran

Untuk melihat aplikasi web Gemini Enterprise, lakukan hal berikut:

  1. Di menu navigasi, klik Integration.

  2. Pastikan Enable the Web App diaktifkan.

  3. Di bagian The link to your web app, klik Copy dan buka link di browser Anda.

  4. Opsional: Bagikan aplikasi penelusuran kepada pengguna Anda dengan menyalin URL dan mengirimkannya kepada mereka. Pengguna dapat memberi bookmark pada URL aplikasi web untuk mengaksesnya.

Pembersihan

Agar akunAnda tidak dikenai biaya untuk resource yang digunakan pada halaman ini, ikuti langkah-langkah berikut. Google Cloud

  1. Untuk menghindari tagihan yang tidak perlu Google Cloud , gunakan Google Cloud console untuk menghapus project Anda jika tidak lagi diperlukan.
  2. Jika Anda membuat project baru untuk mempelajari Gemini Enterprise dan Anda tidak lagi memerlukan project tersebut, hapus project tersebut.
  3. Jika Anda menggunakanproject yang sudah ada Google Cloud , hapus resource yang Anda buat untuk menghindari tagihan pada akun Anda. Untuk mengetahui informasi selengkapnya, lihat Menghapus aplikasi dan menghapus penyimpanan data.
  4. Ikuti langkah-langkah di Menonaktifkan Gemini Enterprise.

Langkah berikutnya