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
commit 826f19e968
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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]+")