fix:score threshold (#24897)

This commit is contained in:
Frederick2313072
2025-09-02 08:58:14 +08:00
committed by GitHub
parent 9486715929
commit 2042353526
24 changed files with 25 additions and 25 deletions

View File

@@ -157,7 +157,7 @@ class BaiduVector(BaseVector):
if meta is not None:
meta = json.loads(meta)
score = row.get("score", 0.0)
if score > score_threshold:
if score >= score_threshold:
meta["score"] = score
doc = Document(page_content=row_data.get(self.field_text), metadata=meta)
docs.append(doc)