Gemini Enterprise を使ってみる
Gemini Enterprise は、詳細な情報検索、最先端の自然言語処理、最新の大規模言語処理の機能を組み合わせてユーザーの意図を理解し、最も関連性の高い結果を返します。
このチュートリアルに進む前に、始める前にの手順が完了していることを確認してください。
このタスクを Google Cloud コンソールで直接行う際の順を追ったガイダンスについては、「ガイドを表示」をクリックしてください。
始める前に
- アカウントにログインします。 Google Cloud を初めて使用する場合は、 アカウントを作成して、実際のシナリオで Google プロダクトのパフォーマンスを評価してください。 Google Cloud新規のお客様には、ワークロードの実行、テスト、デプロイができる無料クレジット $300 分を差し上げます。
-
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 theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
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 theserviceusage.services.enablepermission. Learn how to grant roles.-
Make sure that you have the following role or roles on the project: Gemini Enterprise 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.
Go to IAM - Select the project.
- Click Grant access.
-
In the New principals field, enter your user identifier. This is typically the email address for a Google Account.
- Click Select a role, then search for the role.
- To grant additional roles, click Add another role and add each additional role.
- Click 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 role
(
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 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.enablepermission. Learn how to grant roles.-
Make sure that you have the following role or roles on the project: Gemini Enterprise 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.
Go to IAM - Select the project.
- Click Grant access.
-
In the New principals field, enter your user identifier. This is typically the email address for a Google Account.
- Click Select a role, then search for the role.
- To grant additional roles, click Add another role and add each additional role.
- Click Save.
-
Gemini Enterprise app を作成する
Google Cloud コンソールで、[Gemini Enterprise] ページに移動します。
[アプリを作成] をクリックします。
[アプリ名] に、アプリの名前を入力します。アプリ名の下にアプリ ID が表示されます。
アプリのロケーションとして [global (Global)] を選択します。
[会社名または組織名] に、会社または組織の名前を入力します。このチュートリアルでは、
Cymbal Bankを使用できます。[作成] をクリックします。
アプリが作成されると、アプリの [概要] ページにリダイレクトされます。
データストアを作成する
[設定の完了] で、[データストアを作成] をクリックします。
[Cloud Storage] で、[選択] をクリックします。
[非構造化データをインポート(ドキュメント検索と RAG)] で、[ドキュメント] が選択されていることを確認します。
[同期の頻度] で、[1 回] が選択されていることを確認します。
[インポートするフォルダまたはファイルを選択] で、[フォルダ] が選択されていることを確認します。
[
gs://] フィールドに次の値を入力します。cloud-samples-data/gen-app-builder/search/cymbal-bank-employee
この Cloud Storage バケットには、架空の銀行である Cymbal Bank が内部で使用する PDF ファイルが含まれています。
[続行] をクリックします。
[データストア名] にデータストアの名前を入力し、[作成] をクリックします。
Google Cloud コンソールの [接続されたデータストア] ページにリダイレクトされ、作成したデータストアが表示されます。
アプリをプレビューする
ナビゲーション メニューで [概要] をクリックして、概要ページに戻ります。
[Gemini Enterprise ウェブアプリの準備ができました] で、ウェブアプリのリンクをクリックしてアクセスします。
インポートしたデータをテストするには、[コネクタ] をクリックして、[Google 検索] が選択されていないことを確認します。
![[コネクタ] ボタン](https://docs.cloud.google.com/static/gemini/enterprise/docs/images/assistant/assistant-actions-authorize.png?authuser=01&hl=ja)
検索バーに、インポートしたデータに関する質問を入力します(「
How do I book business travel?」など)。この質問の回答で Cymbal Bank に明示的に言及されていない場合は、数分待ってからもう一度お試しください。
「
Who founded Cymbal Bank?」や「Where are the headquarters of Cymbal Bank?」などの追加の質問をします。
検索ウェブアプリを構成する
Google Cloud コンソールに戻ります。
ナビゲーション メニューで [構成] をクリックします。
[検索 UI] タブで、検索アプリの設定を構成します。
[デザインとブランディングのオプション] で、Cymbal Bank のロゴを次のロゴに変更します。
https://storage.googleapis.com/cloud-samples-data/gen-app-builder/search/cymbal-bank-logo.png[UI] タブで設定を変更した場合は、[保存して公開] をクリックします。
[予測入力] タブに移動して、予測入力の特定の設定を構成します。
[予測入力を有効にする] を [今すぐ] に設定してください。予測入力の候補が表示されるまで 1~2 日かかります。
[アシスタント] タブに移動して、検索アシスタントの設定を構成します。
このページでは、追加の LLM システム指示の設定、Model Armor の有効化、ウェブ グラウンディングなど、デフォルトのアシスタントに関連するその他の設定を行うことができます。
検索ウェブアプリを表示する
Gemini Enterprise ウェブアプリを表示する手順は次のとおりです。
ナビゲーション メニューで [統合] をクリックします。
[ウェブアプリの有効化] が有効になっていることを確認します。
[ウェブアプリへのリンク] セクションで、[コピー] をクリックして、ブラウザでリンクを開きます。
省略可: 検索アプリを他のユーザーと共有するため、URL をコピーして共有相手に送信します。ウェブアプリの URL を受け取ったユーザーは、これをブックマークしておくことができます。
クリーンアップ
このページで使用したリソースについて、 Google Cloud アカウントに課金されないようにするには、 次の手順を実施します。
- Google Cloud の料金が余分に発生しないようにするため、Google Cloud console で不要なプロジェクトを削除します。
- Gemini Enterprise の学習用に新しいプロジェクトを作成し、そのプロジェクトが不要になった場合は、プロジェクトを削除します。
- 既存の Google Cloud プロジェクトを使用した場合は、作成したリソースを削除して、アカウントに課金されないようにします。詳細については、アプリを削除するとデータストアを削除するをご覧ください。
- Gemini Enterprise をオフにするの手順に沿って操作します。
次のステップ
- Gemini Enterprise について学習します。
- アプリとデータストアについてを読みます。