From cad1532f7c0a0cc3f13ca8b2769a64a47b9ff15c Mon Sep 17 00:00:00 2001 From: John Wang Date: Sun, 25 Jun 2023 17:52:22 +0800 Subject: [PATCH] feat: optimize index_struct copy (#442) --- api/core/index/vector_index/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/index/vector_index/base.py b/api/core/index/vector_index/base.py index b33b3e8665..e20848dcfc 100644 --- a/api/core/index/vector_index/base.py +++ b/api/core/index/vector_index/base.py @@ -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: