fix:score threshold (#24897)

This commit is contained in:
Frederick2313072 2025-09-02 08:58:14 +08:00 • committed by GitHub
commit 2042353526
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 25 additions and 25 deletions

View file

@ -369,7 +369,7 @@ class QdrantVector(BaseVector):
continue
metadata = result.payload.get(Field.METADATA_KEY.value) or {}
# duplicate check score threshold
if result.score > score_threshold:
if result.score >= score_threshold:
metadata["score"] = result.score
doc = Document(
page_content=result.payload.get(Field.CONTENT_KEY.value, ""),