開始使用 Gemini Enterprise

Gemini Enterprise 結合了強大的深度資訊檢索機制、先進的自然語言處理功能,以及最新的大規模語言處理技術,能夠掌握使用者意圖,並傳回最相關的結果。

在按照本教學課程操作之前,請確認您已完成「事前準備」這個部分的步驟。


如要直接在 Google Cloud 控制台中,按照這項工作的逐步指南操作,請按一下「Guide me」(逐步引導)

「Guide me」(逐步引導)


事前準備

  1. 登入 Google Cloud 帳戶。如果您是 Google Cloud新手,歡迎 建立帳戶,親自評估產品在實際工作環境中的成效。新客戶還能獲得價值 $300 美元的免費抵免額,可用於執行、測試及部署工作負載。
  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.

建立 Gemini Enterprise 應用程式

  1. 前往 Google Cloud 控制台的「Gemini Enterprise」頁面。

    Gemini Enterprise

  2. 點選「Create app」(建立應用程式)

  3. 在「Your app name」(應用程式名稱) 下方輸入應用程式名稱。應用程式 ID 會顯示在應用程式名稱下方。

  4. 選取「global (Global)」(全球 (全球)) 做為應用程式的位置。

  5. 在「External name of your company or organization」(貴公司或貴機構的外部名稱) 下方,輸入公司或機構名稱。在本教學課程中,您可以使用 Cymbal Bank

  6. 點選「建立」

應用程式建立完成後,系統會將您重新導向應用程式的「總覽」頁面。

建立資料儲存庫

  1. 在「完成設定」下方,按一下「建立資料儲存庫」

  2. 在「Cloud Storage」下方,按一下「Select」(選取)

  3. 在「匯入非結構化資料 (文件搜尋和 RAG)」下方,確認已選取「文件」

  4. 在「Synchronization frequency」(同步處理頻率) 下方,確認已選取「One time」(一次性)

  5. 在「Select a folder or a file you want to import」(選取要匯入的資料夾或檔案) 下方,確認已選取「Folder」(資料夾)

  6. 在「gs://欄位中輸入下列值:

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

    這個 Cloud Storage bucket 包含虛構銀行 Cymbal Bank 內部使用的 PDF 檔案。

  7. 點選「Continue」(繼續)

  8. 在「Your data store name」(資料儲存庫名稱) 下方輸入資料儲存庫名稱,然後按一下「Create」(建立)

    Google Cloud 控制台會將您重新導向至「連結的資料儲存庫」頁面,並顯示您剛建立的資料儲存庫。

預覽應用程式

  1. 在導覽選單中,按一下「總覽」即可返回總覽頁面。

  2. 在「Your Gemini Enterprise webapp is ready」(Gemini Enterprise 網頁應用程式已準備就緒) 下方,按一下連結即可前往網頁應用程式。

  3. 如要測試匯入的資料,請按一下「連結器」,並確認未選取「Google 搜尋」

    「連接器」按鈕

  4. 在搜尋列中,提出關於所匯入資料的問題,例如 How do I book business travel?

    如果這個問題的答案並未明確參照 Cymbal Bank,請稍候幾分鐘,然後再試一次。

  5. 詢問其他問題,例如 Who founded Cymbal Bank?Where are the headquarters of Cymbal Bank?

設定搜尋網頁應用程式

  1. 返回 Google Cloud 控制台。

  2. 在導覽選單中,按一下「Configurations」(設定)

  3. 在「Search UI」(搜尋使用者介面) 分頁中,調整搜尋應用程式的設定。

  4. 在「外觀和品牌宣傳選項」下方,將「Cymbal Bank」的標誌變更為這個標誌。

    https://storage.googleapis.com/cloud-samples-data/gen-app-builder/search/cymbal-bank-logo.png
    
  5. 如果您在「UI」(使用者介面) 分頁中變更設定,請按一下「Save and publish」(儲存並發布)

  6. 前往「Autocomplete」(自動完成) 分頁,調整自動完成功能的特定設定。

    請將「Enable autocomplete」(啟用自動完成功能) 設為「Now」(立即啟用),並等待一兩天,系統才會顯示自動完成建議。

  7. 前往「Assistant」(助理) 分頁,設定搜尋助理的設定。

    您可以在這個頁面設定其他 LLM 系統指令、啟用 Model Armor、網路基礎功能,以及與預設助理相關的其他設定。

查看搜尋網頁應用程式

按照下列步驟操作,即可查看 Gemini Enterprise 網頁應用程式:

  1. 在導覽選單中,按一下「Integration」(整合)

  2. 確認已啟用「Enable the Web App」(啟用網頁應用程式)

  3. 在「The link to your web app」(網頁應用程式連結) 專區,按一下「Copy」(複製),然後在瀏覽器中開啟連結。

  4. 選用:複製網址並傳送給使用者,與他們分享搜尋應用程式。使用者可以將網頁應用程式網址加入書籤,以便存取。

清除所用資源

為了避免系統向您的 Google Cloud 帳戶收取本頁面所用資源的費用,請按照下列步驟操作。

  1. 請透過Google Cloud console 刪除不需要的專案,以免產生不必要的 Google Cloud 費用。
  2. 如果您為了學習 Gemini Enterprise 而建立新專案,但現在不再需要,請刪除專案
  3. 如果您使用現有的 Google Cloud 專案,請刪除稍早建立的資源,以免系統向您的帳戶收取費用。詳情請參閱「刪除應用程式」和「刪除資料儲存庫」。
  4. 請按照「停用 Gemini Enterprise」一文中的步驟操作。

後續步驟