mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-06-04 11:14:10 +08:00
feat: optimize index_struct copy (#442)
This commit is contained in:
parent
951afcaaed
commit
cad1532f7c
@ -157,7 +157,7 @@ class BaseVectorIndex(BaseIndex):
|
|||||||
|
|
||||||
documents.append(document)
|
documents.append(document)
|
||||||
|
|
||||||
origin_index_struct = self.dataset.index_struct
|
origin_index_struct = self.dataset.index_struct[:]
|
||||||
self.dataset.index_struct = None
|
self.dataset.index_struct = None
|
||||||
|
|
||||||
if documents:
|
if documents:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user