Chore : rm dead code detected by pylance (#24588)

This commit is contained in:
Yongtao Huang
2025-08-27 13:19:40 +08:00
committed by GitHub
parent c06cfcbb5a
commit 826f19e968
8 changed files with 1 additions and 25 deletions

View File

@@ -276,7 +276,6 @@ class OracleVector(BaseVector):
if not isinstance(top_k, int) or top_k <= 0 or top_k > 10000:
top_k = 5 # Use default if invalid
# just not implement fetch by score_threshold now, may be later
score_threshold = float(kwargs.get("score_threshold") or 0.0)
if len(query) > 0:
# Check which language the query is in
zh_pattern = re.compile("[\u4e00-\u9fa5]+")