nomic-ai / gpt4all

GPT4All: Chat with Local LLMs on Any Device
https://gpt4all.io
MIT License
66.96k stars 7.36k forks source link

Clarity on adding/removing documetns in a LocalDoc folder #2546

Open ceramicv opened 4 days ago

ceramicv commented 4 days ago

It looks like when you add a new document to that LocalDocs folder it gets indexed automatically - without having to rebuild the index. However what happens to documents you remove from that folder. Do the contents get removed from the index so that outdated information is removed or does that require a rebuild of the index

AndriyMulyar commented 4 days ago

@mcembalest thoughts on where this goes in the docs?

manyoso commented 4 days ago

Yes, if you remove a file from the folder it gets removed from the collection and all its embeddings/chunks are deleted/removed. All this happens automatically, but the 'rebuild' button is there to add peace of mind.