Gemini Enterprise を使ってみる
Gemini Enterprise は、詳細な情報検索、最先端の自然言語処理、最新の大規模言語処理の機能を組み合わせて、ユーザーの意図を理解し、最も関連性の高い検索結果を返します。
このチュートリアルに進む前に、始める前にの手順が完了していることを確認してください。
このタスクを Google Cloud コンソールで直接行う際の順を追ったガイダンスについては、「ガイドを表示」をクリックしてください。
始める前に
- 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 に移動 - プロジェクトを選択します。
- [ アクセスを許可] をクリックします。
-
[新しいプリンシパル] フィールドに、ユーザー ID を入力します。 これは通常、Google アカウントのメールアドレスです。
- [ロールを選択] リストでロールを選択します。
- 追加のロールを付与するには、 [別のロールを追加] をクリックして各ロールを追加します。
- [保存] をクリックします。
-
-
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 に移動 - プロジェクトを選択します。
- [ アクセスを許可] をクリックします。
-
[新しいプリンシパル] フィールドに、ユーザー ID を入力します。 これは通常、Google アカウントのメールアドレスです。
- [ロールを選択] リストでロールを選択します。
- 追加のロールを付与するには、 [別のロールを追加] をクリックして各ロールを追加します。
- [保存] をクリックします。
-
Google Cloud コンソールで、[Gemini Enterprise] ページに移動します。
[Gemini Enterprise] カードで、[管理] を選択します。これにより、 Google Cloud コンソールで Gemini Enterprise が開きます。
[アプリを作成] をクリックします。
[Gemini Enterprise] で [作成] をクリックします。
[アプリ名] に、アプリの名前を入力します。アプリ名の下にアプリ ID が表示されます。
[会社名または組織名] に、会社または組織の名前を入力します。このチュートリアルでは、
Cymbal Bank
を使用できます。アプリのロケーションとして [global (Global)] を選択します。
[続行] をクリックします。
[データストアを作成] をクリックします。
[Cloud Storage] で、[選択] をクリックします。
[インポートするデータの種類] で、[非構造化ドキュメント(PDF、HTML、TXT など)] が選択されていることを確認します。
[同期の頻度] で、[1 回] が選択されていることを確認します。
[インポートするフォルダまたはファイルを選択] で、[フォルダ] が選択されていることを確認します。
[
gs://
] フィールドに次の値を入力します。cloud-samples-data/gen-app-builder/search/cymbal-bank-employee
この Cloud Storage バケットには、架空の銀行である Cymbal Bank が内部で使用する PDF ファイルが含まれています。
[続行] をクリックします。
[データストア名] にデータストアの名前を入力し、[作成] をクリックします。
作成したデータストアを選択し、ページの下部にある [作成] をクリックします。
ナビゲーション メニューで [
プレビュー ] をクリックし、検索アプリをテストします。省略可: モバイルビューとデスクトップ ビューを切り替えるには、ビューアイコンをクリックします。
検索バーに、インポートしたデータに関する質問を入力します(「
How do I book business travel?
」など)。この質問の回答で Cymbal Bank が明示的に言及されていない場合は、数分待ってからもう一度お試しください。
「
Who founded Cymbal Bank?
」や「Where are the headquarters of Cymbal Bank?
」などの追加の質問をします。ナビゲーション メニューで [構成] をクリックします。
[UI] タブで、検索アプリの設定を構成します。
データ型に応じてさまざまな UI 構成を使用できます。詳しくは、UI の結果を構成するをご覧ください。
[UI] タブで設定を変更した場合は、[保存して公開] をクリックします。
[予測入力] タブに移動して、予測入力の特定の設定を構成します。
[予測入力を有効にする] を [今すぐ] に設定してください。予測入力の候補が表示されるまで 1~2 日かかります。
[コントロール] タブに移動して、サービス提供コントロールを構成します。
[アシスタント] タブに移動して、検索アシスタントの設定を構成します。
ナビゲーション メニューで [統合] をクリックします。
[ウェブアプリの有効化] が有効になっていることを確認します。
[ウェブアプリへのリンク] セクションで、[コピー] をクリックして、ブラウザでリンクを開きます。
省略可: URL をコピーしてユーザーに送信し、検索アプリを共有します。ユーザーは、アクセス用にウェブアプリの URL をブックマークできます。
- Google Cloud の料金が余分に発生しないようにするために、不要なプロジェクトをGoogle Cloud console で削除します。
- Gemini Enterprise の学習用に新しいプロジェクトを作成し、そのプロジェクトが不要になった場合は、プロジェクトを削除します。
- 既存の Google Cloud プロジェクトを使用した場合は、作成したリソースを削除して、アカウントに課金されないようにします。詳細については、アプリを削除するとデータストアを削除するをご覧ください。
- Gemini Enterprise を無効にするの手順に沿って操作します。
- 詳しくは、Gemini Enterprise をご覧ください。
- アプリとデータストアの詳細をご覧ください。
Gemini Enterprise アプリを作成する
データストアを作成
アプリをプレビューする
検索ウェブアプリを構成する
検索ウェブアプリを表示する
Gemini Enterprise ウェブアプリを表示する手順は次のとおりです。
クリーンアップ
このページで使用したリソースについて、 Google Cloud アカウントに課金されないようにするには、次の手順を実施します。