
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
Create a source connection and grant IAM permissions
/ 25
Create an object table
/ 25
Generate embeddings
/ 25
Run a vector search
/ 25
In a challenge lab you’re given a scenario and a set of tasks. Instead of following step-by-step instructions, you will use the skills learned from the labs in the course to figure out how to complete the tasks on your own! An automated scoring system (shown on this page) will provide feedback on whether you have completed your tasks correctly.
When you take a challenge lab, you will not be taught new Google Cloud concepts. You are expected to extend your learned skills, like changing default values and reading and researching error messages to fix your own mistakes.
To score 100% you must successfully complete all tasks within the time period!
This lab is recommended for students who have enrolled in the skill badge course titled Implement Multimodal Vector Search with BigQuery. Are you ready for the challenge?
You are a data scientist at Cymbal, an online retail store. You want to build a pipeline to constantly search for similar products on the market to inform a marketing comparison study. You have a few challenges:
To address the these challenges, you decide to implement multimodal vector search with BigQuery.
To complete this lab, you should be familiar with BigQuery and Cloud Storage.
The learning path titled Gemini in BigQuery provides a comprehensive knowledge base for this skill badge. You are encouraged to check out these three courses and their labs to build up your knowledge to successfully complete this challenge lab:
Boost Productivity with Gemini in BigQuery (introductory): Learn how to use Gemini in BigQuery for code assistance, data preparation, and pipeline design.
Work with Gemini Models in BigQuery (intermediate): Learn how to call Gemini models in BigQuery to build a generative AI application.
Create Embeddings, Vector Search, and RAG with BigQuery (advanced): Learn how to prevent AI hallucinations with a RAG (retrieval augmented generation) pipeline, from creating embeddings, to running vector search, and finally generating improved answers.
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.
To utilize remote generative AI models, such as multimodal embedding models, on Vertex AI within BigQuery, create a new external source connection named vector_conn in the region named
This connection acts as a secure pipeline between Vertex AI and BigQuery, enabling the safe use of generative AI models.
Expand the hint for some helpful tips!
To access Vertex AI resources and BigQuery data, you need to grant appropriate IAM permissions to the service account for the external source connection.
Assign the following roles to the service account generated in the previous section:
Expand the hint for a helpful tip!
Click Check my progress to verify the objective.
To query unstructured data like images and videos stored on Google Cloud Storage, create an object table named gcc_image_object_table in the precreated BigQuery dataset named gcc_bqml_dataset.
This table stores metadata about the object, such as its URL and content type, but not the unstructured data itself. Because object tables can be queried like any other BigQuery table, you can use SQL (or Python) to filter and select objects based on their metadata.
Run the following SQL code in the BigQuery SQL Editor. Be sure to replace the bracketed placeholders []
with the correct code (such as replacing [PROJECT_ID]
with the assigned Project ID for this lab environment).
Expand the hint for helpful tips!
Click Check my progress to verify the objective.
To connect to the remote multimodal embedding model, create a new model in BigQuery named gcc_embedding in the precreated BigQuery dataset named gcc_bqml_dataset, and specify the endpoint (model name) as multimodalembedding@001
.
Run the following SQL code in the BigQuery SQL Editor. Be sure to replace the bracketed placeholders []
with the correct code (such as replacing [PROJECT_ID]
with the assigned Project ID for this lab environment).
Expand the hint for helpful tips!
When generating the embeddings for images, save the embeddings to a table named gcc_retail_store_embeddings in the precreated BigQuery dataset named gcc_bqml_dataset.
[]
with the correct code (such as replacing [PROJECT_ID]
with the assigned Project ID for this lab environment).Expand the hint for helpful tips!
Click Check my progress to verify the objective.
When executing the vector search to find the most similar images to the search phrase, save your search results to a table named gcc_vector_search_table in the precreated BigQuery dataset named gcc_bqml_dataset.
[]
with the correct code (such as replacing [PROJECT_ID]
with the assigned Project ID for this lab environment).Expand the hint for helpful tips!
Click Check my progress to verify the objective.
Congratulations on successfully implementing multimodal vector search with BigQuery! In this lab, you first established connections to external resources and granted the appropriate IAM permissions to the service account. Next, you created an object table to store image metadata. You then generated embeddings to convert the images into vectors. Finally, you searched the vectors and found your desired products.
You can now apply this same process to search multimodal data in your own use cases!
...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 May 29, 2025
Lab Last Tested May 29, 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