nomic-ai / gpt4all

GPT4All: Run Local LLMs on Any Device. Open-source and available for commercial use.
https://nomic.ai/gpt4all
MIT License
70.62k stars 7.7k forks source link

LocalDocs collection can't be removed while embedding is in process nor can the embedding process be stopped #3127

Open JannisBush opened 3 weeks ago

JannisBush commented 3 weeks ago

Bug Report

It is not possible to remove a LocalDocs collection while the indexing/embedding is running. If one added a large collection that would take a long time to process, it is not possible to abort this process.

There is no button/option to pause the processing (https://github.com/nomic-ai/gpt4all/issues/2579). When I click on the remove button while it is processing, the collection will disappear, however the processing will continue in the background and after a restart of the app the collection is there again and continues embedding.

Steps to Reproduce

  1. Add a large collection that takes a long time to embed
  2. Remove the collection by clicking the remove button
  3. Optional: observe that the embedding is still going on (CPU load)
  4. Restart the application
  5. Observe that the collection is still there and continues embedding

Expected Behavior

It should be possible to stop the processing of a collection and remove it before it is ready.

Your Environment

JannisBush commented 4 days ago

By manually removing /Users/<username>/Library/Application Support/nomic.ai/GPT4All/localdocs_* from the filesystem and then force quitting the application and restarting, I was able to "fix" the problem.

This solution will delete all existing collections but at least makes the application usable again.

hans4rc commented 3 days ago

@JannisBush Thanks for the tip about the workaround! I have the same problem. Even if indexing/embedding is completed, I cannot delete a collection.

v3.4.2, Windows 11 Pro