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.

fix: a failed index to be marked as created (#25290)

NeatGuyCodingafa722807612
diff --git a/api/core/rag/datasource/vdb/matrixone/matrixone_vector.py b/api/core/rag/datasource/vdb/matrixone/matrixone_vector.py
index 1bf8da5daac..9660cf8abaf 100644
--- a/api/core/rag/datasource/vdb/matrixone/matrixone_vector.py
+++ b/api/core/rag/datasource/vdb/matrixone/matrixone_vector.py
@@ -99,9 +99,9 @@ class MatrixoneVector(BaseVector):
return client
try:
client.create_full_text_index()
+ redis_client.set(collection_exist_cache_key, 1, ex=3600)
except Exception:
logger.exception("Failed to create full text index")
- redis_client.set(collection_exist_cache_key, 1, ex=3600)
return client
def add_texts(self, documents: list[Document], embeddings: list[list[float]], **kwargs):