dify icon indicating copy to clipboard operation
dify copied to clipboard

can't close rerank model used

Open Lyeluo opened this issue 1 year ago • 6 comments

Self Checks

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

Dify version

0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

i used chat-flow add a datasets step , but i can't close rerank model whatever when click this button Image

Image

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Lyeluo avatar Feb 13 '25 07:02 Lyeluo

It seems you're encountering an issue with disabling the rerank model in a self-hosted Dify setup. Unfortunately, I couldn't find specific information on the steps or code paths involved in disabling the rerank model in the Dify platform. However, here are a few general troubleshooting steps you might consider:

  1. Check Configuration: Ensure that the rerank model settings are correctly configured in the Dify interface. This includes verifying that the API key for the rerank model is correctly set up in the Settings → Model Providers section.

  2. Review Logs: Check the application logs for any error messages related to the rerank model. This might provide more insight into why the model cannot be disabled.

  3. Inspect UI Interactions: If the issue is related to the user interface, ensure that there are no JavaScript errors in the browser's console that might be preventing the UI from functioning correctly.

  4. Restart Services: Sometimes, restarting the Dify services or the Docker containers can resolve issues related to configuration changes not being applied.

If these steps do not resolve the issue, you might need to look into the specific code handling the rerank model configuration to identify any potential bugs or misconfigurations.

To continue talking to Dosu, mention @dosu.


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

dosubot[bot] avatar Feb 13 '25 07:02 dosubot[bot]

but i can't close rerank model whatever when click this button

Do you mean choose?

crazywoola avatar Feb 13 '25 08:02 crazywoola

but i can't close rerank model whatever when click this button

Do you mean choose?

Yes, I don't want to use the rerank model, but there is no way to deselect it. Whether I save or publish it, it will still go back to calling the rerank model.

Lyeluo avatar Feb 13 '25 08:02 Lyeluo

Then I think you can do it by turning it off.

Image

crazywoola avatar Feb 13 '25 08:02 crazywoola

Then I think you can do it by turning it off.

Image

Yes, that's exactly what I did. However, when I turned off this switch, it still used the rerank model. When I opened this page again, the switch had turned back to the on state. I checked by capturing packets and found that there was no call to the backend API interface when I clicked to turn it off. I upgraded from version 0.13, and I'm not sure if this has anything to do with it.

Lyeluo avatar Feb 13 '25 09:02 Lyeluo

https://github.com/user-attachments/assets/31e49226-af27-4be9-837b-8f4c4b8ed744

Lyeluo avatar Feb 13 '25 09:02 Lyeluo