mirror of
https://github.com/langgenius/dify.git
synced 2025-08-20 07:08:13 +00: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…
x
Reference in New Issue
Block a user