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

0.68 dify use xinference rerank model,not get the right result #4432

Open
4 tasks done
dmarkubex opened this issue May 15, 2024 · 3 comments
Open
4 tasks done

0.68 dify use xinference rerank model,not get the right result #4432

dmarkubex opened this issue May 15, 2024 · 3 comments
Labels
🐞 bug Something isn't working

Comments

@dmarkubex
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).
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.8

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

the dify updated from 0.6.7 to 0.6.8
in 0.6.7 ,the answer returns ok

✔️ Expected Behavior

return the answer

❌ Actual Behavior

the result is wrong

@dosubot dosubot bot added the 🐞 bug Something isn't working label May 15, 2024
Copy link

dosubot bot commented May 15, 2024

To address the issue with the xinference rerank model not producing the expected results after updating to Dify version 0.6.8, ensure the model is correctly installed and configured in your Docker self-hosted setup. Follow these steps:

  1. Verify the installation of Xinference and its correct configuration within your Docker setup.
  2. Check network configurations to ensure Dify can communicate with the Xinference endpoint.
  3. Confirm the model ID is correctly set in Dify's settings, following the path Settings > Model Providers > Xinference.

Consider external factors that might affect the model's performance, such as network issues, server availability, and compatibility with your hardware. Review any specific error messages or logs for clues to the problem.

If the issue persists, providing more details like specific error messages, input data, and scenarios where the model fails can help pinpoint the problem. For more detailed guidance, refer to the Dify documentation.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@dmarkubex
Copy link
Author

the rerank model in xinference is just on running,because when i use the dify 0.6.7,the rerank model has good rag result,but when i update the dify to the 0.6.8,then use the rerank model ,the rag result is not right.

Copy link

dosubot bot commented May 16, 2024

To resolve the issue with the rerank model in Xinference not producing the expected results after updating Dify to version 0.6.8, consider the following steps:

  1. Check Network Configuration for Docker: Ensure the Dify container can access the Xinference endpoint. Use the host machine's IP address instead of localhost in the Xinference configuration within Dify.

  2. Verify Xinference Deployment: Make sure Xinference is correctly deployed and accessible. The Server URL in Dify's settings should be http://<Machine_IP>:9997, with <Machine_IP> being your machine's IP address.

  3. Model UID and Server URL Configuration: Double-check that the Model UID and Server URL in Dify's settings match the Xinference configuration. Incorrect settings can lead to failures in retrieving the correct model responses.

  4. Review Model Compatibility and Documentation: Ensure the model's compatibility with your hardware and review both Xinference and Dify documentation for any version-specific guidance or known issues.

  5. Increase Logging Verbosity: Adjust logging settings in both Xinference and Dify to capture detailed error logs. This can help identify configuration errors or issues in the request/response flow.

  6. Consider Version Compatibility Issues: Be aware of changes in Docker setup or configuration requirements between Dify versions that could affect model performance. Specifically, new environment variables related to vector storage and database configurations introduced in version 0.6.8 might impact the rerank model's performance.

If these steps do not resolve the issue, you might consider temporarily rolling back to Dify 0.6.7, where the rerank model was working as expected, while investigating further or seeking support from the Dify or Xinference communities.

For more detailed troubleshooting, providing specific error messages or scenarios where the model fails could be helpful.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

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

1 participant