iT邦幫忙

0

DAY22:FAISS實作

2025-10-23 10:42:36148 瀏覽
  • 分享至 

  • xImage
  •  
  1. 安裝必要套件
    https://ithelp.ithome.com.tw/upload/images/20251023/20169372KkkDWlpMpQ.png
  2. 初始化Embedding模型與文件
    https://ithelp.ithome.com.tw/upload/images/20251023/20169372JvK0HExBW7.png
  3. 進行語意查詢與篩選
    https://ithelp.ithome.com.tw/upload/images/20251023/20169372NgjzBY7uGP.png
  4. 輸出結果
    https://ithelp.ithome.com.tw/upload/images/20251023/20169372ZSieC1bVff.png
    可以看到,雖然我們的查詢是中文句子,FAISS仍能根據語意比對出中英文食物主題的句子,這是因為我們使用了多語言模型multilingual-e5-small,讓Embedding能跨語言理解語意!

圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言