mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-11 13:49:03 +08:00
fix: remove document from dataset error when vector index npe (#489)
This commit is contained in:
parent
b9b0866a46
commit
da04ff040b
@ -41,6 +41,7 @@ def remove_document_from_index_task(document_id: str):
|
||||
kw_index = IndexBuilder.get_index(dataset, 'economy')
|
||||
|
||||
# delete from vector index
|
||||
if vector_index:
|
||||
vector_index.delete_by_document_id(document.id)
|
||||
|
||||
# delete from keyword index
|
||||
|
Loading…
x
Reference in New Issue
Block a user