Просмотр исходного кода

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 месяц назад
Родитель
Сommit
afa7228076
Аккаунт пользователя с таким Email не найден
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):

Загрузка…
Отмена
Сохранить