# Chroma sample code 整個 sample code 最重要的就兩個檔案, `chroma_vector.py`, `chromaDB.py`。 `chroma_vector.py` 讀取檔案內容(txt, pdf, img, video..) 透過 aws解析成 embedding ,再將 embedding 存到 chroma。 解讀 `chroma_vector.py` 可以把 `create_vector(...)` 視為 entry point,從這個 function 開始讀。  `chromaDB.py` 提供 query 的服務,前台 chat 將 user的 input 透過 chroma 來執行 RAG。 解讀 `chromaDB.py` 可以從 `chroma_query(...)` 開始  ### 整合情境
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up