瀏覽代碼

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

Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
tags/2.0.0-beta.2^2
NeatGuyCoding 1 月之前
父節點
當前提交
afa7228076
No account linked to committer's email address
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      api/core/rag/datasource/vdb/matrixone/matrixone_vector.py

+ 1
- 1
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):

Loading…
取消
儲存