mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 02:49:03 +08:00
update empty document caused delete exist collection (#6392)
This commit is contained in:
parent
65bc4e0fc0
commit
443e96777b
@ -46,6 +46,7 @@ def document_indexing_update_task(dataset_id: str, document_id: str):
|
||||
index_processor = IndexProcessorFactory(index_type).init_index_processor()
|
||||
|
||||
segments = db.session.query(DocumentSegment).filter(DocumentSegment.document_id == document_id).all()
|
||||
if segments:
|
||||
index_node_ids = [segment.index_node_id for segment in segments]
|
||||
|
||||
# delete from vector index
|
||||
|
Loading…
x
Reference in New Issue
Block a user