Repository navigation
Replies: 5 comments 1 reply
|
Hi @H-0163! I'm Dosu and I'm helping the Dify team. This matches a confirmed deletion bug in the Weaviate vector store integration that has been reported across v1.11.2 through v1.16.1 — if you're using Weaviate as your vector database, this is very likely what you're hitting. Root cause (Weaviate-specific): When you delete a document, Each delete/re-upload cycle leaves orphaned vectors in the collection. Additionally, because the UUID5 is derived only from Why CJK fails first while English keeps working: Weaviate's BM25 full-text search tokenizes the To your questions:
Could you confirm which vector database you're running (Weaviate, Qdrant, pgvector, Milvus, etc.)? The analysis above is Weaviate-specific — if you're on a different backend the root cause may differ. To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
|
@dosu Thanks for the investigation. We're using Weaviate as the vector database backend. Dify version: v1.13.0 Please let us know if this is consistent with issue #40457. Thank you. |
|
Yes, Weaviate on v1.13.0 plus CJK dying after 5 to 6 delete/reupload cycles is issue #40457. Deletes go out with Dify's Until #40499 (delete by stored Cleanup is still a new Knowledge Base or a new embedding model (both create a fresh collection). There is no in-place rebuild today. |
|
Thank you for the detailed explanation. This makes a lot of sense and matches the behavior we have been observing. We have indeed been using delete/reupload cycles to refresh our knowledge base, so the orphaned objects issue seems like a very plausible root cause. Until the fix in #40499 becomes available in a released version, we will avoid using delete/reupload as a refresh mechanism and consider recreating the Knowledge Base as a workaround. Thanks again for helping identify the issue and for sharing the implementation details. |
|
#40499 closed unmerged. Its replacement, #41915, ships in 1.17.1; no 1.13.x tag carries it. Upgrade via its staged Weaviate steps: https://github.com/langgenius/dify/releases/tag/1.17.1 Old orphans stay after upgrading, so switch embedding model once, or make new KB, to rebuild that collection. |

Uh oh!
There was an error while loading. Please reload this page.
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
Hi Dify team,
I am using Dify v1.13.0 and have encountered what appears to be an issue with Knowledge Base retrieval.
Environment:
Issue:
I upload documents to a Knowledge Base and verify that the content can be retrieved successfully.
However, if I repeatedly perform the following operations:
After approximately 5 to 6 cycles, retrieval behavior becomes abnormal.
Observed behavior:
Recovery:
When this happens, either of the following actions restores normal behavior:
After doing so, Japanese, Chinese, and Korean queries work correctly again.
Expected behavior:
The Knowledge Base should continue to retrieve relevant content correctly regardless of the number of document delete/upload cycles, and retrieval quality should remain consistent across languages.
Questions:
Additional info:
Any guidance would be appreciated.
Thank you.
2. Additional context or comments
No response
All reactions