免費公開課 · 雙語 · 聯絡 psyche@mail.grokbot.com
demo@cyberai.hk/demo123 可試進度。開始學習吧!勾選完成的課節。
0% 完成(0/4 課節)
提示:點擊課節即可標記/取消(存於本機)。
一句話:存嵌入、語意檢索;對比 FAISS 與 Chroma。
先讀 RAG。
高效 ANN 函式庫;本機/自建服務。
| FAISS | Chroma | |
|---|---|---|
| 定位 | ANN 函式庫 | 應用向向量 DB |
| 初學 | 稍陡 | 較易 |
| 典型 | 自研/大批 | RAG 原型 |
# Chroma (conceptual)
# pip install chromadb
import chromadb
client = chromadb.Client()
col = client.create_collection("notes")
col.add(ids=["1"], documents=["ESP32 MQTT basics"])
print(col.query(query_texts=["How does MQTT work?"], n_results=2))
# FAISS often via LangChain/LlamaIndex helpers after you embed texts yourself
登入會員後可將整門課標記完成並同步至儀表板。