
Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
- On the top left of your screen, click Start lab to begin
Enable required API
/ 10
Create a website search app
/ 30
Create a structured data search app
/ 30
Create an unstructured data search app
/ 30
Vertex AI Search brings together the power of deep information retrieval, state-of-the-art natural language processing, and the latest in large language processing to understand user intent and return the most relevant results for the user.
You can deploy Vertex AI Search applications from AI Applications within the Google Cloud Console.
In this lab you will learn how to create search applications based on:
You will then configure, visualize, and analyze the search results that are returned from the search app.
In this lab, you will learn how to perform the following tasks:
Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long Google Cloud resources are made available to you.
This hands-on lab lets you do the lab activities in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials you use to sign in and access Google Cloud for the duration of the lab.
To complete this lab, you need:
Click the Start Lab button. If you need to pay for the lab, a dialog opens for you to select your payment method. On the left is the Lab Details pane with the following:
Click Open Google Cloud console (or right-click and select Open Link in Incognito Window if you are running the Chrome browser).
The lab spins up resources, and then opens another tab that shows the Sign in page.
Tip: Arrange the tabs in separate windows, side-by-side.
If necessary, copy the Username below and paste it into the Sign in dialog.
You can also find the Username in the Lab Details pane.
Click Next.
Copy the Password below and paste it into the Welcome dialog.
You can also find the Password in the Lab Details pane.
Click Next.
Click through the subsequent pages:
After a few moments, the Google Cloud console opens in this tab.
Navigate to AI Applications by searching for it at the top of the Cloud Console.
On the welcome page, click Continue and Activate the API.
Click Check my progress to verify the objective.
A website search app makes it easier for users to find the information they are looking for on your website.
After you enable AI Applications, you will be taken to a Create App page to create your first app.
On the Search for your website card, click Create.
Leave the checkboxes checked, and for App name enter:
For Company Name, enter:
Click Continue.
On the Create a data store for your app page, click +CREATE DATA STORE.
Find the Website Content card and click Select.
Leave Advanced website indexing unchecked, and under the Specify URL patterns to index header, include the following URL pattern:
Click Continue.
On the Configure your data store page, in the Data store name field, enter:
Click CREATE.
On the data store page, make sure Google Cloud Docs Website Content is selected, and then click Create.
Click Check my progress to verify the objective.
In the side panel, select Preview.
In the search bar at the top of the Preview window, enter Document AI
and press Enter.
Click the view icons to switch between mobile view and desktop view.
Structured data can be used to make website content more visible to search engines. A structured data search app improves the discoverability of website content and provides users with a more relevant search experience.
Click the AI Applications logo to navigate back to the Apps page.
Click +CREATE APP.
On the Create App page, find the Custom search card and click Create.
Leave the checkboxes checked, and for App name enter:
For Company Name, enter:
Click Continue.
On the Data store for your app page, click +CREATE DATA STORE.
Find the Cloud Storage card and click Select.
Select the Structured data (JSONL) radio option.
Under the header Select a folder or a file you want to import, select FILE as the import type and enter the following value:
This Cloud Storage bucket contains an NDJSON-formatted dataset of movies made available by Kaggle.
Click Continue.
On the Review schema and assign key properties page, review the columns available for each field and then click Continue.
On the Configure your data store page, in the Data store name field, enter:
Click CREATE.
On the data stores page for your app, ensure Structured Movie Data is selected and click CREATE.
On the left-hand navigation menu of your app, select the Data page.
Select the Activity tab.
Upon success you will see the Status
column change to Succeeded as shown in the image below:
Click the DOCUMENTS tab to see the number of documents imported.
Click the Schema tab to see the auto-generated schema for your dataset. Notice that for auto-generated schemas, all fields are retrievable, indexable, facetable and searchable.
In the navigation menu, click Preview to test the search app.
In the search bar, enter:
Then press Enter to view the results.
Notice that the full schema is returned. Often times you will not need to display all of the items returned by the full schema. To customize the values to display, AI Applications allows you to configure only the values you want to display. You will see how this is achieved in the next steps.
In the left-hand navigation panel, click Configurations.
Open the Configure fields in results dropdown and map fields in your data store to the attributes to be displayed in search results:
Key | Value |
---|---|
Title | title |
Thumbnail | poster_path |
URL | homepage |
Tex 1 | tagline |
Tex 2 | release_date |
Click Check my progress to verify the objective.
Back on the Preview page, enter the following in the search bar:
Press Enter to view the search results.
The output results have been formatted according to the fields you configured and should look similar to the results pictured below.
In this section you will review available methods of integrating configured search capabilities into your web or server based applications.
In the left-hand side panel, click Integration. Notice at the top of the resulting page that you are on the Widget tab with code to embed your search app in web-based integrations.
Here you could select the authorization type used to allow users to interact with the search widget. Select JWT or OAuth Based or Public Access depending on your needs. If using JWT or OAuth Based
you will need to configure your application to provide a JSON Web Token or an OAuth token provided by your backend. See Add a widget with an authorization token for more details.
You can also restrict the widget's usage to specific domains specified in the Add allowed domains for the widget list.
Next, click on the API tab.
Here you can enter a search query and see the API call that could be used to query your app.
Unstructured data is data that does not have a predefined format. This type of data can be difficult to search within using traditional search engines. An unstructured data search app can be used to make this data more accessible to gain insights that can be used to improve business operations.
Click the AI Applications logo to navigate back to the Apps page.
Click +CREATE APP.
On the Create App page, find the card for Custom search and click Create.
Once again, leave the checkboxes checked. Enter the following for App name:
For Company Name enter:
Then click Continue.
On the Data Stores page for your app, click +CREATE DATA STORE.
Find the card for Cloud Storage and click Select.
For the data type, select Unstructured documents (PDF, HTML, TXT and more).
Under the header Select a folder or a file you want to import, select the Folder type and enter the following value:
Then click Continue.
On the Configure your data store page, in the Data store name field, enter:
Click the Document Processing Options dropdown to see the parser options.
Select the Layout Parser for Vertex AI Search to identify content elements like text blocks, tables, lists, and structural elements such as titles and headings and use them to define the organization and hierarchy of a document.
Click CREATE.
On the Data Stores page for your app, ensure the Unstructured PDF Data data store is selected and click CREATE.
From the left-hand navigation menu, click Data, then click on the Activity tab.
When the import process is finished, you will see Import completed
in the Status column.
In the navigation menu, click Preview to test the search app.
In the search bar, enter Google revenue in 2008
, and then press Enter to search the PDFs.
Notice the summary as well as the results. Below is an example of search results for the query provided.
Click Check my progress to verify the objective.
You learned how to create Vertex AI Search apps using different types of data stores. You configured the display of the search results. You also viewed the code to embed your search app in a web application and viewed an example query to call your app via an API call.
...helps you make the most of Google Cloud technologies. Our classes include technical skills and best practices to help you get up to speed quickly and continue your learning journey. We offer fundamental to advanced level training, with on-demand, live, and virtual options to suit your busy schedule. Certifications help you validate and prove your skill and expertise in Google Cloud technologies.
Manual Last Updated: April 17, 2025
Lab Last Tested: April 17, 2025
Copyright 2025 Google LLC. All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.
This content is not currently available
We will notify you via email when it becomes available
Great!
We will contact you via email if it becomes available
One lab at a time
Confirm to end all existing labs and start this one