Переглянути джерело

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
Аккаунт користувача з таким Email не знайдено

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

Завантаження…
Відмінити
Зберегти