Quellcode durchsuchen

fix: filter bug for keywork cause code can not reach (#11666)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
yihong vor 4 Monaten
Ursprung
Commit
22258fb0bf
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      api/core/rag/datasource/vdb/lindorm/lindorm_vector.py

+ 1 - 1
api/core/rag/datasource/vdb/lindorm/lindorm_vector.py

@@ -424,7 +424,7 @@ def default_vector_search_query(
 ) -> dict:
     if filters is not None:
         filter_type = "post_filter" if filter_type is None else filter_type
-        if not isinstance(filter, list):
+        if not isinstance(filters, list):
             raise RuntimeError(f"unexpected filter with {type(filters)}")
     final_ext = {"lvector": {}}
     if min_score != "0.0":