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] 简洁阐述问题 / samples 目录删除后还是会被加入向量库, 为什么? #5184

Open
BigGeneral666 opened this issue Jan 9, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@BigGeneral666
Copy link

samples 目录删除后还是会被加入向量库, 为什么?

@BigGeneral666 BigGeneral666 added the bug Something isn't working label Jan 9, 2025
Copy link

dosubot bot commented Jan 9, 2025

The issue of the samples directory being included in the vector database even after deletion might be related to the caching mechanism in the Langchain-Chatchat system. The system uses a caching mechanism that might retain data from deleted directories if the cache is not properly cleared. The CachePool class manages cached objects, and if the cache is not refreshed, it might still process data from deleted directories [1][2].

Additionally, the prune_db_docs function is designed to delete documents in the database that no longer exist in the local folder. If this function is not executed or if the cache is not refreshed, deleted directories might still be processed [3].

Ensure that the cache is cleared and the prune_db_docs function is invoked to synchronize the database with the current state of the filesystem.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

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