Feat/support parent child chunk (#12092)

This commit is contained in:
Jyong authored and GitHub committed 2024-12-25 19:49:07 +08:00
1 parent 017d7538ae
commit 9231fdbf4c
54 files changed
+2578 -808

No files matched your search

+1 -1
View File
@@ -82,7 +82,7 @@ def document_indexing_sync_task(dataset_id: str, document_id: str):
index_node_ids = [segment.index_node_id for segment in segments]
# delete from vector index
index_processor.clean(dataset, index_node_ids)
index_processor.clean(dataset, index_node_ids, with_keywords=True, delete_child_chunks=True)
for segment in segments:
db.session.delete(segment)