開始使用 Gemini Enterprise
Gemini Enterprise 結合了強大的深度資訊檢索機制、先進的自然語言處理功能,以及最新的大規模語言處理技術,能夠掌握使用者意圖,並傳回最相關的結果。
在按照本教學課程操作之前,請確認您已完成「事前準備」這個部分的步驟。
如要直接在 Google Cloud 控制台按照逐步指南操作,請按一下「Guide me」(逐步引導):
事前準備
- 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.create
permission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
-
Enable the Vertex AI, 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 theserviceusage.services.enable
permission. Learn how to grant roles. -
Make sure that you have the following role or roles on the project: Discovery Engine Admin
Check for the roles
-
In the Google Cloud console, go to the IAM page.
Go to IAM - Select the project.
-
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.
- 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
-
In the Google Cloud console, go to the IAM page.
前往「IAM」頁面 - 選取專案。
- 按一下「授予存取權」 。
-
在「New principals」(新增主體) 欄位中,輸入您的使用者 ID。 這通常是 Google 帳戶的電子郵件地址。
- 在「Select a role」(選取角色) 清單中,選取角色。
- 如要授予其他角色,請按一下 「新增其他角色」,然後新增每個其他角色。
- 按一下 [Save]。
-
-
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.create
permission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
-
Enable the Vertex AI, 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 theserviceusage.services.enable
permission. Learn how to grant roles. -
Make sure that you have the following role or roles on the project: Discovery Engine Admin
Check for the roles
-
In the Google Cloud console, go to the IAM page.
Go to IAM - Select the project.
-
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.
- 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
-
In the Google Cloud console, go to the IAM page.
前往「IAM」頁面 - 選取專案。
- 按一下「授予存取權」 。
-
在「New principals」(新增主體) 欄位中,輸入您的使用者 ID。 這通常是 Google 帳戶的電子郵件地址。
- 在「Select a role」(選取角色) 清單中,選取角色。
- 如要授予其他角色,請按一下 「新增其他角色」,然後新增每個其他角色。
- 按一下 [Save]。
-
前往 Google Cloud 控制台的「Gemini Enterprise」頁面。
在「Gemini Enterprise」資訊卡下方,選取「Manage」(管理)。Gemini Enterprise 就會在 Google Cloud 控制台中開啟。
點選「Create app」(建立應用程式)。
在「Gemini Enterprise」下方,點選「Create」(建立)。
在「Your app name」(應用程式名稱) 下方輸入應用程式名稱。應用程式 ID 會顯示在應用程式名稱下方。
在「External name of your company or organization」(貴公司或貴機構的外部名稱) 下方,輸入公司或機構名稱。在本教學課程中,您可以使用
Cymbal Bank
。選取「global (Global)」(全球 (全球)) 做為應用程式的位置。
點選「Continue」(繼續)。
點選「Create Data Store」(建立資料儲存庫)。
在「Cloud Storage」下方,按一下「Select」(選取)。
在「What kind of data are you importing?」(您要匯入哪種資料?) 下方,確認已選取「Unstructured documents (PDF, HTML, TXT and more)」(非結構化文件 (PDF、HTML 和 TXT 等))。
在「Synchronization frequency」(同步處理頻率) 下方,確認已選取「One time」(一次性)。
在「Select a folder or a file you want to import」(選取要匯入的資料夾或檔案) 下方,確認已選取「Folder」(資料夾)。
在「
gs://
」欄位中輸入下列值:cloud-samples-data/gen-app-builder/search/cymbal-bank-employee
這個 Cloud Storage bucket 包含虛構銀行 Cymbal Bank 內部使用的 PDF 檔案。
點選「Continue」(繼續)。
在「Your data store name」(資料儲存庫名稱) 下方輸入資料儲存庫名稱,然後按一下「Create」(建立)。
選取剛建立的資料儲存庫,然後按一下頁面底部的「Create」(建立)。
在導覽選單中,點選
「Preview」(預覽) 來測試搜尋應用程式。選用:點選檢視圖示,即可在行動裝置檢視畫面和電腦檢視畫面間切換。
在搜尋列中,提出關於所匯入資料的問題,例如
How do I book business travel?
如果這個問題的答案並未明確參照 Cymbal Bank,請稍候幾分鐘,然後再試一次。
詢問其他問題,例如
Who founded Cymbal Bank?
或Where are the headquarters of Cymbal Bank?
在導覽選單中,按一下「Configurations」(設定)。
在「UI」(使用者介面) 分頁中,調整搜尋應用程式的設定。
不同的資料類型可用的 UI 設定皆有所差異。詳情請參閱「設定 UI 的結果」一文。
如果您在「UI」(使用者介面) 分頁中變更設定,請按一下「Save and publish」(儲存並發布)。
前往「Autocomplete」(自動完成) 分頁,調整自動完成功能的特定設定。
請務必將「Enable autocomplete」(啟用自動完成功能) 設為「Now」(立即啟用),並等待一兩天,系統才會顯示自動完成建議。
前往「Control」(控制) 分頁,設定供應控制項。
前往「Assistant」(助理) 分頁,設定搜尋助理的設定。
在導覽選單中,按一下「Integration」(整合)。
確認已啟用「Enable the Web App」(啟用網頁應用程式)。
在「The link to your web app」(網頁應用程式連結) 專區,按一下「Copy」(複製),然後在瀏覽器中開啟連結。
選用:複製網址並傳送給使用者,與他們分享搜尋應用程式。使用者可以將網頁應用程式網址加入書籤,以便存取。
- 請透過Google Cloud console 刪除不需要的專案,以免產生不必要的 Google Cloud 費用。
- 如果您為了學習 Gemini Enterprise 而建立新專案,但現在不再需要,請刪除專案。
- 如果您使用現有的 Google Cloud 專案,請刪除稍早建立的資源,以免系統向您的帳戶收取費用。詳情請參閱「刪除應用程式」和「刪除資料儲存庫」。
- 請按照「停用 Gemini Enterprise」一文中的步驟操作。
- 進一步瞭解 Gemini Enterprise。
- 進一步瞭解應用程式和資料儲存庫。
建立 Gemini Enterprise 應用程式
建立資料儲存庫
預覽應用程式
設定搜尋網頁應用程式
查看搜尋網頁應用程式
按照下列步驟操作,即可查看 Gemini Enterprise 網頁應用程式:
清除所用資源
如要避免系統向您的 Google Cloud 帳戶收取本頁所用資源的費用,請按照下列步驟操作。