FlagEmbedding icon indicating copy to clipboard operation
FlagEmbedding copied to clipboard

Normalize Output Scores of bge-reranker to Range 0-1

Open CarllllWang opened this issue 1 year ago • 1 comments

In my observations, the score fluctuates significantly, which makes it challenging to interpret the results on a standard scale. I would like to normalize these output scores to a range between 0 and 1 to maintain consistency and improve interpretability. Could you provide guidance on the best way to achieve this normalization? Thank you for your help.

CarllllWang avatar Jul 15 '24 07:07 CarllllWang

When you use compute_score, you can set normalize=True.

545999961 avatar Jul 15 '24 07:07 545999961