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:
@@ -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):
|
||||||
|
Reference in New Issue
Block a user