This page describes how to create a Gemini Enterprise app.
Create an app
Console
- In the Google Cloud console, go to the Gemini Enterprise page.
- On the Apps page, click Create app.
- In the App name field, enter a name for your app.
- To update the automatically generated app ID, click Edit. The app ID cannot be updated after you create the app.
- In the Choose a location section, select a Multi-region. Use the default global (Global) multi-region unless you need to restrict your data to a specific geography.
- To provide your company's external name, expand Advanced options. In the Company name field, enter your company's external name, omitting suffixes such as Inc or LLC. This helps the LLM identify the company the app represents.
REST
Before you use the command line to create an app, you must have an existing data store. If you don't have a data store, you need to connect a Google data source or a third-party data source to your app.
To use the engines.create
method to create an app from the command line, follow these steps:
Find your data store ID. If you already have your data store ID, skip to the next step.
In the Google Cloud console, go to the Gemini Enterprise page and in the navigation menu, click Data Stores.
Click the name of your data store.
On the Data page for your data store, get the data store ID.
Create an app and connect it to a data store.
curl -X POST \ -H "Authorization: Bearer $(gcloud auth print-access-token)" \ -H "Content-Type: application/json" \ -H "X-Goog-User-Project: PROJECT_ID" \ "https://discoveryengine.googleapis.com/v1/projects/PROJECT_ID/locations/global/collections/default_collection/engines?engineId=APP_ID" \ -d '{ "displayName": "APP_DISPLAY_NAME", "dataStoreEntityIds": ["DATA_STORE_ENTITY_ID_1", "DATA_STORE_ENTITY_ID_2", "DATA_STORE_ENTITY_ID_3"], "solutionType": "SOLUTION_TYPE_SEARCH", "industryVertical": "GENERIC", "appType": "APP_TYPE_INTRANET" }'
Replace the following:
PROJECT_ID
: the ID of your project.APP_ID
: the ID of the app that you want to create.APP_DISPLAY_NAME
: the display name of the app that you want to create.DATA_STORE_ENTITY_ID
: if your data store contains entities, use the specific entity IDs. If your data store does not contain entities, use the data store ID instead.
What's next
- To connect your data sources, see Connect a Google data source and Connect a third-party data source.
- Preview search results