mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +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)
|
||||
|
||||
origin_index_struct = self.dataset.index_struct
|
||||
origin_index_struct = self.dataset.index_struct[:]
|
||||
self.dataset.index_struct = None
|
||||
|
||||
if documents:
|
||||
|
|
Loading…
Reference in New Issue
Block a user