Procházet zdrojové kódy

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 před 1 měsícem
rodič
revize
afa7228076
Žádný účet není propojen s e-mailovou adresou tvůrce revize

+ 1
- 1
api/core/rag/datasource/vdb/matrixone/matrixone_vector.py Zobrazit soubor

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

Načítá se…
Zrušit
Uložit