Draft: Alternative Normalization Scheme for Reranking Update rerank.py#214
Draft: Alternative Normalization Scheme for Reranking Update rerank.py#214AuditAIH wants to merge 1 commit intolanggenius:mainfrom
Conversation
# Draft: Alternative Normalization Scheme for Reranking This submission presents a draft of a normalization scheme more suitable for reranking tasks. Notably, this implementation replaces the original Min-Max normalization (which maps scores to the 0~1.0 range) with sigmoid normalization. The sigmoid function (1 / (1 + e^(-x))) is applied to each score to achieve the 0-1 range mapping. Important note: This change will have a significant impact on API numerical values that currently return results in the (0,1) range. Therefore, this draft is not recommended for merging at this stage.
|
It's a breaking change I believe, which may effect lots of plugins depend on it, before we merge it, I'd like to have a list declares the range, let's me know your thoughts on it. |
|
@Yeuoly |
|
Please accept my sincere apologies for the incorrect closure of your pull request due to a technical issue in the trigger test. This was an operational mistake on our side, and I deeply regret any inconvenience this may have caused. (T.T) |
This is important when setting a retrieval score threshold for the knowledge base. Hope to see this proposal to be merged in the future. |

Draft: Alternative Normalization Scheme for Reranking
This submission presents a draft of a normalization scheme more suitable for reranking tasks.
Notably, this implementation replaces the original Min-Max normalization (which maps scores to the 0~1.0 range) with sigmoid normalization. The sigmoid function (1 / (1 + e^(-x))) is applied to each score to achieve the 0-1 range mapping.
Important note: This change will have a significant impact on API numerical values that currently return results in the (0,1) range. Therefore, this draft is not recommended for merging at this stage.
Pull Request Checklist
Thank you for your contribution! Before submitting your PR, please make sure you have completed the following checks:
Compatibility Check
README.mdREADME.mdREADME.mdREADME.mdAvailable Checks