Find answers from the community

Updated 2 months ago

adding documents to chromadb

can someone pls tell me how to add and remove documents from a collection inside an already persistent chroma db, I'm pretty confused trying to do it based on the documentation
g
W
13 comments
@WhiteFang_Jr can you help with this pls
@WhiteFang_Jr
Attachment
image.png
it gives me this error
You will have to iterate over the docs
Plain Text
docs = SimpleDirectoryReader(...)
for doc in docs:
  index.insert(doc)
the kernel dies from some reason, i tried it after restarting and gave the same thing :
Attachment
image.png
idk why this happened on my personal laptop, but I tried on another machine and it worked, thank you so much @WhiteFang_Jr
Could be some issue, now you can't say it works on my machine πŸ˜†
Add a reply
Sign up and join the conversation on Discord