mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-11 20:06:54 +08:00
feat: optimize index_struct copy (#442)
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user