Find answers from the community

Updated 4 months ago

adding documents to chromadb

At a glance

The community member is seeking help on how to add and remove documents from a collection inside an already persistent Chroma DB, as they are confused by the documentation. Another community member, @WhiteFang_Jr, is asked for help. The comments provide some guidance, including links to resources on adding and deleting documents. However, the community member still faces issues, such as an error and the kernel dying. They mention trying on another machine and it working, but also acknowledge that the issue could be specific to their personal laptop. There is no explicitly marked answer in the comments.

Useful resources
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