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
Get the length and first five elements of the text embedding
/ 10
Compare similarity of text examples using cosine similarity
/ 15
Generate image embeddings for the specified image
/ 15
Find product based on text query
/ 15
Generate video embeddings for the specified video
/ 15
Find videos based on text search query
/ 15
Find similar video based on video
/ 15
Get the length and first five elements of the text embedding
/ 10
Compare similarity of text examples using cosine similarity
/ 15
Generate image embeddings for the specified image
/ 15
Find product based on text query
/ 15
Generate video embeddings for the specified video
/ 15
Find videos based on text search query
/ 15
Find similar video based on video
/ 15
本實驗室將深入介紹 Agent Platform Embeddings API,探討其處理文字和多模態資料 (圖片和影片) 的能力。您將瞭解嵌入的基本概念,學習如何將各種內容類型轉換為數值表示,並掌握數據的意義和關係。接著,本實驗室會引導您透過實作練習,瞭解 Agent Platform Text 和 Multimodal Embeddings API,並示範如何實際運用這些 API,建構簡易的電子商務資料搜尋系統。您將瞭解如何根據文字查詢、圖片或影片來尋找產品,並認識嵌入技術在增強搜尋和推薦系統方面的強大功能。
開始這個實驗室之前,您應已熟悉下列概念:
本實驗室的學習內容包括:
請詳閱以下操作說明。實驗室活動會計時,且中途無法暫停。點選「Start Lab」後就會開始計時,顯示可使用 Google Cloud 資源的時間。
您將在真正的雲端環境完成實作實驗室活動,而不是模擬或示範環境。為此,我們會提供新的暫時憑證,供您在實驗室活動期間登入及存取 Google Cloud。
為了順利完成這個實驗室,請先確認:
點選「Start Lab」按鈕。如果實驗室會產生費用,畫面上會出現選擇付款方式的對話方塊。左側的「Lab Details」窗格會顯示下列項目:
點選「Open Google Cloud console」;如果使用 Chrome 瀏覽器,也能按一下滑鼠右鍵,選取「在無痕視窗中開啟連結」。
接著,實驗室會啟動相關資源,並開啟另一個分頁,顯示「登入」頁面。
提示:您可以在不同的視窗中並排開啟分頁。
如有必要,請將下方的 Username 貼到「登入」對話方塊。
您也可以在「Lab Details」窗格找到 Username。
點選「下一步」。
複製下方的 Password,並貼到「歡迎使用」對話方塊。
您也可以在「Lab Details」窗格找到 Password。
點選「下一步」。
按過後續的所有頁面:
Google Cloud 控制台稍後會在這個分頁開啟。
前往 Google Cloud 控制台,依序點按「導覽選單」圖示
>「Agent Platform」>「Notebooks」。
在左側導覽列中,點擊 Workbench。
找出
Workbench 執行個體的 JupyterLab 介面會在新瀏覽器分頁開啟。
1. 關閉 JupyterLab 的瀏覽器分頁,回到 Workbench 首頁。
2. 勾選執行個體名稱旁的核取方塊,然後點按「重設」。
3. 「開啟 JupyterLab」按鈕再次啟用後,等待一分鐘,然後點按「開啟 JupyterLab」。
開啟
出現「Select Kernel」對話方塊時,從可用核心清單中選取「Python 3」。
執行筆記本的「Getting Started」部分,專案 ID 和位置已預先設定完成。
在這個部分,您將嘗試使用 Gemini 的 Text Embeddings API。
點按「Check my progress」,確認目標已達成。
點按「Check my progress」,確認目標已達成。
在這個部分,您將嘗試使用 Gemini 的 Multimodal Embedding API。
點按「Check my progress」,確認目標已達成。
點按「Check my progress」,確認目標已達成。
點按「Check my progress」,確認目標已達成。
點按「Check my progress」,確認目標已達成。
點按「Check my progress」,確認目標已達成。
在本實驗室,您已學會如何使用 Agent Platform Text 和 Multimodal Embeddings API 嵌入內容。
歡迎參考下列資源,進一步瞭解 Gemini:
協助您瞭解如何充分運用 Google Cloud 的技術。我們的課程會介紹專業技能和最佳做法,讓您可以快速掌握要領並持續進修。我們提供從基本到進階等級的訓練課程,並有隨選、線上和虛擬課程等選項,方便您抽空參加。認證可協助您驗證及證明自己在 Google Cloud 技術方面的技能和專業知識。
使用手冊上次更新日期:2025 年 10 月 17 日
實驗室上次測試日期:2025 年 10 月 17 日
Copyright 2026 Google LLC 保留所有權利。Google 和 Google 標誌是 Google LLC 的商標,其他公司和產品名稱則有可能是其關聯公司的商標。
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
Complete this quick step to start your lab.