[PR #87] fix: normalize rerank score to 0-1 range when only one document #135

Open
opened 2026-02-15 21:15:55 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/87
Author: @zhengdewei0817
Created: 4/10/2025
Status: 🔄 Open

Base: mainHead: fix-fix-rerank-score-normalize


📝 Commits (1)

  • 28eb07b fix: normalize rerank score to 0-1 range when only one document

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 python/dify_plugin/interfaces/model/openai_compatible/rerank.py (+3 -0)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-sdks/pull/87 **Author:** [@zhengdewei0817](https://github.com/zhengdewei0817) **Created:** 4/10/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix-fix-rerank-score-normalize` --- ### 📝 Commits (1) - [`28eb07b`](https://github.com/langgenius/dify-plugin-sdks/commit/28eb07b8fc3735f3a5918abafef95c2c0102cbb9) fix: normalize rerank score to 0-1 range when only one document ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `python/dify_plugin/interfaces/model/openai_compatible/rerank.py` (+3 -0) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 21:15:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-sdks#135