Create a search app

This page describes how to create a search app.

Create an app

Console

To use the Google Cloud console to create a search app, follow these steps:

  1. In the Google Cloud console, go to the Agent Builder page.

    Agent Builder

  2. On the Apps page, click New app.

  3. On the Create app page, select Search.

  4. If you are offered a choice of generic or media content, click Generic.

  5. Decide if you want Enterprise features for this app and then click the toggle on or off.

    Turning on Enterprise edition features is required to get features such as website search and choosing a region for your app. Enterprise edition features incur additional cost. For more information, see Enterprise edition features.

  6. Decide if you want Advanced LLM features for this app and then click the toggle on or off.

    Activating Advanced LLM features is required to get features such as search summaries or search with follow-ups. For more information, see Advanced LLM features.

  7. In the Your app name field, enter a name for your app.

  8. In the External name of your company or organization field, enter the common name for your company or organization. You don't need to include suffixes such as Inc or LLC. This field is useful for the LLM to identify the company that the app represents.

  9. Select a location for your app. Enterprise features must be turned on to pick a location. Google recommends that you use the default, global (Global), unless you have a reason to restrict your data to a particular geography.

  10. Click Continue.

  11. To connect to a data store, on the Data stores page, select a data store that you previously created or create a new data store. Do at least one of the following:

    • Select an existing data store.

      If you attach only one data store, you can't remove it nor can you add other data stores to this app later. If you attach multiple data stores, you can change which data stores are attached later, but this app must always have at least two data stores attached.

    • Create a new data store and ingest data into it.

      Do this by clicking Create new data store and following the steps in the Create a new data store pane that opens. Then select your new data store. For more information, see Create a search data store.

  12. Optional: To see a list of unavailable data stores, click Learn why.

    A table is displayed with a list of data stores and the reason why they are unavailable. Here are some of the reasons why a data store might be unavailable:

    • Your data store type allows connection to only one app and the data store is already connected.
    • Your data store and your app are in different regions.
    • Your data store and your app are of different types. For example, you cannot connect a healthcare search data store to a website search app.
    • Your data store has basic website indexing, whereas your website search app requires a data store with advanced website indexing.
  13. Click Create.

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, create one following the steps in Create a data store and ingest data for Vertex AI Search.

To use the engines.create method to create a search app from the command line, follow these steps:

  1. Find your data store ID. If you already have your data store ID, skip to the next step.

    1. In the Google Cloud console, go to the Agent Builder page and in the navigation menu, click Data stores.

      Go to the Data stores page

    2. Click the name of your data store.

    3. On the Data page for your data store, get the data store ID.

  2. Create a search app and connect it to a data store. A data store can be attached to only one app and can't be removed from the app later.

    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",
      "dataStoreIds": ["DATA_STORE_ID"],
      "solutionType": "SOLUTION_TYPE_SEARCH",
      "searchEngineConfig": {
         "searchTier": "SEARCH_TIER",
         "searchAddOns": ["SEARCH_ADD_ON"]
       }
    }'
    

    Replace the following:

    • PROJECT_ID: the ID of your Google Cloud project.
    • APP_ID: the ID of the Vertex AI Search app that you want to create.
    • APP_DISPLAY_NAME: the display name of the Vertex AI Search app that you want to create.
    • DATA_STORE_ID: the ID of an existing Vertex AI Search data store that you want to add to the Vertex AI Search app.
    • SEARCH_TIER: the search tier can be SEARCH_TIER_STANDARD or SEARCH_TIER_ENTERPRISE. SEARCH_TIER_ENTERPRISE is required to get features such as website search and choosing a region for your app. Enterprise edition features incur additional cost. For more information, see Enterprise edition features.
    • SEARCH_ADD_ON: If you want Advanced LLM features for this app, then specify SEARCH_ADD_ON_LLM. Advanced LLM features include search summaries and search with follow-ups.

      If you don't want Advanced LLM features, then either specify SEARCH_ADD_ON_UNSPECIFIED or remove the searchAddOns field.

      For more information, see Advanced LLM features.

Terraform

To learn how to apply or remove a Terraform configuration, see Basic Terraform commands. For more information, see the Terraform provider reference documentation.

To create a search app using Terraform, see discovery_engine_search_engine.

What's next