mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
OpenAI-API-compatible plugin does not return correct scores from rerank service #397
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sergik86 on GitHub (Jun 25, 2025).
Self Checks
Dify version
1.4.3
Plugin version
0.0.16
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Make a rerank request via the OpenAI-API-compatible plugin.
Inspect the response JSON and compare the score or relevance_score fields with those returned directly by the rerank service.
Notice that the scores do not match or are missing.
✔️ Error log
No response
@quicksandznzn commented on GitHub (Jul 3, 2025):
The scores will be normalized https://github.com/langgenius/dify-plugin-sdks/blob/main/python/dify_plugin/interfaces/model/openai_compatible/rerank.py#L99
@dosubot[bot] commented on GitHub (Aug 20, 2025):
Hi, @sergik86. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thank you for your understanding and contribution!
@JarviLau commented on GitHub (Jan 19, 2026):
but why do this ? what is the reason to normalize the scores? how can i get the real scores?