
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
Image understanding across multiple images
/ 25
Similarity/Differences between the images
/ 25
Generate a video description and retrieve extra information beyond the video
/ 25
Multimodal retrieval augmented generation (RAG)
/ 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 Inspect Rich Documents with Gemini Multimodality and Multimodal RAG skill badge. Are you ready for the challenge?
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:
In the Google Cloud console, on the Navigation menu (), click Vertex AI > Workbench.
Find the
The JupyterLab interface for your Workbench instance opens in a new browser tab.
Click on the
In the Select Kernel dialog, choose Python 3 from the list of available kernels.
Run through the 4 cells in the Setup and requirements section of the notebook (before you get to Task 1).
Use the following information to initialize the Gen AI SDK for Python for your project:
You are a Marketing Campaign Coordinator at a media company, working closely with the Marketing Manager to plan, execute, and evaluate campaigns to meet sales targets. Recently, you secured an exciting new contract with Google. As a Marketing Campaign Coordinator, you’re eager to dive into the materials that will help you familiarize yourself with the Google brand and Google brand identity as quickly as possible. Therefore, you plan to review Google’s brand guidelines, previous campaigns, product ads, customer testimonials, and financial reports by leveraging Gemini’s innovative capabilities to gain deeper insights into Google more efficiently.
In this challenge, you begin with multimodal prompts to extract information from text and visual data, generating a video description, and retrieving extra information beyond the video by using multimodality with Gemini. You also build metadata of documents containing text and images, getting all relevant text chunks, and printing citations by using Multimodal Retrieval Augmented Generation (RAG) with Gemini.
In this task, you familiarize yourself with the Google brand and Google brand identity using Gemini, which is a multimodal model that supports multimodal prompts. You include text, image(s), and video in your prompt requests and get text or code responses.
To complete this task, follow the instructions in the specified sections of the notebook.
To verify the objective, click Check my progress.
To verify the objective, click Check my progress.
To generate a video description using a multimodal model, follow the instructions in the Generate a video description section.
To extract object tags throughout a video using a multimodal model, follow the instructions in the Extract tags of objects throughout the video section.
To further explore the video using a multimodal model, follow the instructions in the Ask more questions about a video section.
To get even more information from images using a multimodal model, follow the instructions in the Retrieve extra information beyond the video section.
To verify the objective, click Check my progress.
To complete this task, follow the instructions in the specified sections of the notebook.
Available data and helper functions to use for Task 2:
The Terms of Service document for Google's services, defining the relationship between Google and its users. It covers what users can expect from Google, the rules for using the services, intellectual property rights related to content, and the procedures for resolving disputes or disagreements. This sample document contains only text.
A modified version of Google-10K which provides a comprehensive overview of the company's financial performance, business operations, management, and risk factors. As the original document is rather large, you use a modified version with only 14 pages, split into two parts - Part 1 and Part 2 instead. Although it's truncated, this sample document still contains text along with images such as tables, charts, and graphs.
You also select from the following helper functions to complete tasks below. For more information on these functions, refer to GitHub):
For the inspect the processed text metadata function:
For the inspect the processed image metadata function:
For the import the helper functions to implement RAG function:
get_similar_text_from_query()
function.To import and run helper functions, follow the instructions in the Build metadata of documents containing text and images section.
To work with the provided variables, follow the instructions in the Create a user query section.
To retrieve relevant chunks of text based on the query, follow the instructions in the Get all relevant text chunks section.
To organize the chunks of text, follow the instructions in the Create context text.
To pass the context to Gemini and generate a response, follow the instructions to Pass context to Gemini.
To verify the objective, click Check my progress.
By completing this challenge lab, you demonstrated you can leverage Gemini APIs to generate text, create function calls, and describe video contents. Your work ensured that these features met the expected standards before deployment to production. Well done!
Check out the following resources to learn more about Gemini:
...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 23, 2025
Lab Last Tested May 22, 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