iT邦幫忙

2024 iThome 鐵人賽

DAY 24
0
生成式 AI

智能雲端架構圖生成:結合LangChain&LangGrpah與Rag的創新應用系列 第 24

day24 探索 GCP Agent Builder Search:實現文件上傳與搜尋測試的智能搜尋體驗

  • 分享至 

  • xImage
  •  

前言

day22、23介紹各種雲端搜尋服務,今天我們正式的會去操作 AgentBuilder做為示範,用於之後串接我們的生成架構圖系統,會選擇AgentBuilder主要原因是他有一個預覽的介面,可以事先檢視查詢的效果,我覺得很好用。

正文

教科書

之前我們製作的教科書,今天我用來上傳到Cloud Storage上
https://ithelp.ithome.com.tw/upload/images/20240923/20168697Mz3NEslYdg.png
https://ithelp.ithome.com.tw/upload/images/20240923/201686975Vz6GwUa14.png

Cloud Storage

首先建立一個Cloud Storage,存放Diagram as Code資料
https://ithelp.ithome.com.tw/upload/images/20240923/20168697b4PYBTLlaq.png
輸入名子
https://ithelp.ithome.com.tw/upload/images/20240923/20168697I0lRUOowZ0.png
這邊就根據需求,最低成本的話選擇單一區域
https://ithelp.ithome.com.tw/upload/images/20240923/201686971ADCo1Wm5f.png
剩下的沒有特別需求,使用預設即可!
https://ithelp.ithome.com.tw/upload/images/20240923/20168697hBcXN2Q6et.png
上傳所有的文件
https://ithelp.ithome.com.tw/upload/images/20240923/20168697r7x6AW3sPD.png
上傳成功
https://ithelp.ithome.com.tw/upload/images/20240923/20168697epQLRnpX73.png

Agent Builder 資料儲存庫

先到資料儲存庫建立一個資料儲存庫
https://ithelp.ithome.com.tw/upload/images/20240923/201686970ofheivBHs.png
選擇Cloud Storage
https://ithelp.ithome.com.tw/upload/images/20240923/20168697y2sD8aJCi3.png
選擇非結構化文件,並且選擇剛剛建立的Cloud Storage
這裡會匯入失敗的原因,可能要選擇Cloud Storage內的檔案或者是文件夾,不能直接選擇Cloud Storage
https://ithelp.ithome.com.tw/upload/images/20240923/20168697k1SYPfzhnW.png

接著輸入名稱,建立資料儲存庫
https://ithelp.ithome.com.tw/upload/images/20240923/2016869785XIV5doTd.png
可以看到建立成功,並且有ID,這在我們之後串接會有幫助
https://ithelp.ithome.com.tw/upload/images/20240923/20168697d8xi8dGYgR.png

Agent Builder 應用程式

接著回到應用程式串接資料儲存庫
https://ithelp.ithome.com.tw/upload/images/20240923/201686971vdGV5Sky8.png
選擇搜尋服務
https://ithelp.ithome.com.tw/upload/images/20240923/20168697meW3f7yaZn.png
內容通用即可,進階功能在這裡不太需要,因此都關閉
https://ithelp.ithome.com.tw/upload/images/20240923/20168697ofiVr274zK.png
接著輸入名稱
https://ithelp.ithome.com.tw/upload/images/20240923/20168697MkjvhA4tA5.png
選擇剛剛建立的資料儲存庫,來連結
https://ithelp.ithome.com.tw/upload/images/20240923/20168697ybOsb3h4p6.png
建立完後,會自動進入Agent Builder瀏覽頁面,可以看見連結的資料儲存庫
https://ithelp.ithome.com.tw/upload/images/20240923/20168697EqNlmWiAU3.png

預覽搜尋功能

點選預覽功能,可以進行搜尋測試
https://ithelp.ithome.com.tw/upload/images/20240923/201686973fpBnq5A6B.png
可以測試搜尋的內容
https://ithelp.ithome.com.tw/upload/images/20240923/20168697AgxyfNk3ii.png


上一篇
day23 RAG與雲端非向量搜尋服務:AWS Kendra與GCP AgentBuilder初探
下一篇
day25 結合AWS Kendra與RAG的詳細操作:解鎖雲端資料的智慧搜索能力
系列文
智能雲端架構圖生成:結合LangChain&LangGrpah與Rag的創新應用27
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言