Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 2 months ago
0
Follow
adding documents to chromadb
adding documents to chromadb
Inactive
0
Follow
g
ghxsted.
5 months ago
Β·
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
Share
Open in Discord
g
ghxsted.
5 months ago
@WhiteFang_Jr can you help with this pls
W
WhiteFang_Jr
5 months ago
https://discord.com/channels/1059199217496772688/1260848476380594250/1260919246452555817
you can refer to this for addition
W
WhiteFang_Jr
5 months ago
https://docs.llamaindex.ai/en/stable/module_guides/indexing/document_management/?h=document+mana#deletion
You can refer to this for deletion
g
ghxsted.
5 months ago
@WhiteFang_Jr
Attachment
g
ghxsted.
5 months ago
it gives me this error
g
ghxsted.
5 months ago
Attachment
W
WhiteFang_Jr
5 months ago
You will have to iterate over the docs
W
WhiteFang_Jr
5 months ago
Docs is a list
W
WhiteFang_Jr
5 months ago
Plain Text
Copy
docs = SimpleDirectoryReader(...) for doc in docs: index.insert(doc)
g
ghxsted.
5 months ago
the kernel dies from some reason, i tried it after restarting and gave the same thing :
Attachment
g
ghxsted.
5 months ago
idk why this happened on my personal laptop, but I tried on another machine and it worked, thank you so much @WhiteFang_Jr
W
WhiteFang_Jr
5 months ago
Could be some issue, now you can't say it works on my machine π
g
ghxsted.
5 months ago
xddd
Add a reply
Sign up and join the conversation on Discord
Join on Discord