Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat: optimize index_struct copy (#442)

John Wangcad1532f7c0a
diff --git a/api/core/index/vector_index/base.py b/api/core/index/vector_index/base.py
index b33b3e8665a..e20848dcfc7 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: