mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-11-30 02:08:37 +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