Skip to content
New issue

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

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

Already on GitHub? # to your account

[BUG] 简洁阐述问题 / samples 目录删除后还是会被加入向量库, 为什么? #5184

Closed
BigGeneral666 opened this issue Jan 9, 2025 · 3 comments
Labels
bug Something isn't working stale

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

Copy link

github-actions bot commented Feb 8, 2025

这个问题已经被标记为 stale ,因为它已经超过 30 天没有任何活动。

@github-actions github-actions bot added the stale label Feb 8, 2025
Copy link

这个问题已经被自动关闭,因为它被标为 stale 后超过 14 天没有任何活动。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant