恭喜你!

Introduction to Embeddings with the OpenAI API

Emmanuel Pire

Senior Software Engineer, DataCamp

第 1 章-什麼是 Embeddings?

 

  • Embeddings:文字的 _向量_/數值表示
  • 擷取文字的 _語意_
  • 使用 OpenAI 的 Embedding 模型
  • cosine distance 尋找相似文本
  • 解鎖語意搜尋、推薦引擎等應用

 

2D 向量空間圖:相同情緒與主題的評論在向量空間中彼此更接近。

Introduction to Embeddings with the OpenAI API

第 2 章-AI 應用中的 Embeddings

 

語意搜尋與推薦

在向量空間中的嵌入式搜尋查詢,旁邊是多個不同主題的嵌入文章。

 

分類

在向量空間中的嵌入式類別描述,一個未知向量被標記為 Tech。

Introduction to Embeddings with the OpenAI API

第 3 章-向量資料庫

示意圖:使用向量資料庫(此例為 Chroma)儲存文件 embeddings,並依嵌入式查詢回傳結果給使用者。

Introduction to Embeddings with the OpenAI API

接下來呢?

雲端代管的向量資料庫

應用開發框架

Introduction to Embeddings with the OpenAI API

一起來練習吧!

Introduction to Embeddings with the OpenAI API

Preparing Video For Download...