Prune tool not deleting orphaned KB files.
Setup: Latest OWUI update (11). Latest Prune Tool: 0.10.10
- I have a knowledge base, within that knowledge base I had two folders.
- I deleted one of the folders (not the full KB) - it contained about 400 markdown files.
- I noticed that the model, even after the deletion of that one folder, was still RAGing in those 400 files.
- I ran the prune tool, with all the settings within Orphaned: Knowledge Bases & Memories on.
- Wishing I kept the log, but I am fairly certain I saw a confirmation of ~400 deleted KB related files. But I can't say for certain.
- The model was still able to query and present info from these files.
- I restarted containers completely. Hoping perhaps this would help, but it did not. I am still able to query.
- I can still preview, and even download the files from the in-chat citations feature.
Unsure if this is intended OWUI behavior, and the prune tool is meant to catch this. Let me know if I should open the issue elsewhere.
Open WebUI side: deleting a folder inside a knowledge base together with its contents only removes the links, the embeddings stay in the knowledge base's vector collection, so retrieval keeps finding those files and citations still open them. Fixed upstream in dev, not in any release yet.
Prune side: the tool only removed leftover chunks of files whose record was gone. Your file records were still there (your chats cite them), so the chunks survived.
Fixed in dev every sweep now compares each knowledge base's collection against the files it actually lists and removes the chunks of everything it no longer lists. Grab prune/event.py from the dev branch, run a preview, the new row "Files with stale knowledge base embeddings" under Storage should show your ~400 files, then execute. On by default, no setting needed.