Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Documents persist in user_data after UI deletion #493

Open
Lee-Ju-Yeong opened this issue Nov 15, 2024 · 0 comments
Open

[BUG] Documents persist in user_data after UI deletion #493

Lee-Ju-Yeong opened this issue Nov 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Lee-Ju-Yeong
Copy link

Description

When deleting documents through the Kotaemon UI, while the documents are removed from the interface, they continue to persist in the actual file system under the user_data directory. Specifically, the documents remain stored in the LanceDB data directory (/ktem_app_data/user_data/docstore/index_1.lance/data). This creates a discrepancy between the UI state and the actual data storage, potentially leading to storage bloat and inconsistent state management

Reproduction steps

Start Kotaemon application

# optional (setup env)
conda create -n kotaemon python=3.10
conda activate kotaemon

pip install -e "libs/kotaemon[all]"
pip install -e "libs/ktem"

python app.py

Upload any document through the UI
Delete the document using the UI delete function
Check the contents of /ktem_app_data/user_data/docstore/index_1.lance/data
Observe that the document data still exists in the directory despite being deleted from the UI

Screenshots

![DESCRIPTION](LINK.png)

Logs

no logs. no error message.

Browsers

Chrome

OS

MacOS

Additional information

When a document is deleted through the UI, it should be completely removed from both the UI and the underlying storage system
The /ktem_app_data/user_data/docstore/index_1.lance/data directory should be properly cleaned up

@Lee-Ju-Yeong Lee-Ju-Yeong added the bug Something isn't working label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant