Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

While connect to external knowledge base, cannot publish app without rerank model #15311

Closed
5 tasks done
gavinlichn opened this issue Mar 9, 2025 · 2 comments
Closed
5 tasks done
Labels
🐞 bug Something isn't working

Comments

@gavinlichn
Copy link

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I have created an app with external knowledge-base, and disabled rerank in knowledge-base setting.
while trying to publish app, it failed with "A configured rerank model is required"

Image

Image

✔️ Expected Behavior

success to pubsh app

❌ Actual Behavior

app cannot publish, with a failure notification

Copy link

dosubot bot commented Mar 9, 2025

Hey @gavinlichn! 👋 I'm here to help you with any bugs, questions, or contributions you have for Dify. Let's tackle this issue together!

There are similar issues related to the requirement of a rerank model when publishing an app with an external knowledge base in Dify.

  1. Open Issue: The "Rerank Model is required" error occurs because the Multi-Path Retrieval mode in Dify requires a Rerank model to function correctly, even if you have set the Rerank option to off. To resolve this issue, you need to configure a Rerank model by entering the "Model Provider" page and filling in the Rerank model's API key [1].

  2. Closed Issue: To resolve the issue '[Knowledge Retrieval] Rerank model cannot be empty,' ensure that the rerank model is properly configured in the retrieval settings. This error typically occurs when the rerank model is not set up correctly, especially when the retrieval mode is set to multiWay. Verify that the multiple_retrieval_config is correctly set up with a rerank model [2].

You might want to check your configuration settings and ensure that a rerank model is properly set up, even if you have disabled it in the settings.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot dosubot bot added the 🐞 bug Something isn't working label Mar 9, 2025
@crazywoola
Copy link
Member

Fixed in Fix: reranker OFF logic to preserve user setting (#15235)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants