fix: Every time a vectorized document is generated, the entire vectorized data of the document is deleted (#2721)

This commit is contained in:
shaohuzhang1 2025-03-28 14:15:48 +08:00 committed by GitHub
parent 2fe4248785
commit dcc80a4dca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -272,8 +272,6 @@ class ListenerManagement:
ListenerManagement.update_status(QuerySet(Document).filter(id=document_id), TaskType.EMBEDDING,
State.STARTED)
# 删除文档向量数据
VectorStore.get_embedding_vector().delete_by_document_id(document_id)
# 根据段落进行向量化处理
page_desc(QuerySet(Paragraph)