Skip to content

Commit 51efab0

Browse files
committed
fix ruff check error
1 parent fdc8bb7 commit 51efab0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rag/utils/ob_conn.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def _check_ob_version(self):
431431
pool_pre_ping=True,
432432
pool_recycle=3600,
433433
)
434-
logger.info(f"OceanBase Hybrid Search feature is enabled")
434+
logger.info("OceanBase Hybrid Search feature is enabled")
435435

436436
def _try_to_update_ob_query_timeout(self):
437437
try:
@@ -852,7 +852,7 @@ def search(
852852

853853
for m in matchExprs:
854854
if isinstance(m, MatchTextExpr):
855-
assert "original_query" in m.extra_options, f"'original_query' is missing in extra_options."
855+
assert "original_query" in m.extra_options, "'original_query' is missing in extra_options."
856856
fulltext_query = m.extra_options["original_query"]
857857
fulltext_query = escape_string(fulltext_query.strip())
858858
fulltext_topn = m.topn
@@ -898,7 +898,7 @@ def search(
898898
pagerank_score_expr = f"(CAST(IFNULL({PAGERANK_FLD}, 0) AS DECIMAL(10, 2)) / 100)"
899899

900900
# TODO use tag rank_feature in sorting
901-
tag_rank_fea = {k: float(v) for k, v in (rank_feature or {}).items() if k != PAGERANK_FLD}
901+
# tag_rank_fea = {k: float(v) for k, v in (rank_feature or {}).items() if k != PAGERANK_FLD}
902902

903903
if fulltext_query and vector_data:
904904
search_type = "fusion"

0 commit comments

Comments
 (0)