Skip to content

Commit

Permalink
Add pre and post process functions for Bedrock Rerank API opensearch-…
Browse files Browse the repository at this point in the history
…project#3254

Signed-off-by: tkykenmt <[email protected]>
  • Loading branch information
tkykenmt committed Jan 6, 2025
1 parent a1de787 commit 3a4ae65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public List<ModelTensor> process(List<Map<String, Object>> rerankResults) {
.name("similarity")
.shape(new long[] { 1 })
.data(new Number[] { scores[i].doubleValue() })
.dataType(MLResultDataType.FLOAT32)
.dataType(MLResultDataType.FLOAT64)
.build()
);
}
Expand Down

0 comments on commit 3a4ae65

Please sign in to comment.