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

Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
NeatGuyCoding
2025-09-06 22:53:26 +08:00
committed by GitHub
parent bbc43ca50d
commit afa7228076

View File

@@ -99,9 +99,9 @@ class MatrixoneVector(BaseVector):
return client return client
try: try:
client.create_full_text_index() client.create_full_text_index()
redis_client.set(collection_exist_cache_key, 1, ex=3600)
except Exception: except Exception:
logger.exception("Failed to create full text index") logger.exception("Failed to create full text index")
redis_client.set(collection_exist_cache_key, 1, ex=3600)
return client return client
def add_texts(self, documents: list[Document], embeddings: list[list[float]], **kwargs): def add_texts(self, documents: list[Document], embeddings: list[list[float]], **kwargs):