Skip to content

Commit

Permalink
update bedrock rerank
Browse files Browse the repository at this point in the history
  • Loading branch information
warren830 committed Dec 4, 2024
1 parent 13d0816 commit 23a8497
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def _invoke(

# score threshold check
if score_threshold is not None:
if result.relevance_score >= score_threshold:
if rerank_document.score >= score_threshold:
rerank_documents.append(rerank_document)
else:
rerank_documents.append(rerank_document)
Expand Down

0 comments on commit 23a8497

Please sign in to comment.