mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Add reranker - Azure AI Studio #4
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 @alexmofidi on GitHub (Feb 11, 2025).
Self Checks
Dify version
15.3
Cloud or Self Hosted
Self Hosted (Docker), Cloud
Steps to reproduce
I have deployed Cohere-rerank-v3-english in Azure AI Foundry. {Settings --> Model provider --> Azure AI Foundry}
I added the API key provided by Azure as the JWT token
When I want to add it to dify. It gives 400 error.
Both LLM and Embedding models have been successfully added by Azure OpenAI Service. {Settings --> Model provider --> Azure OpenAI Service}
✔️ Expected Behavior
be validated and connected to Azure. I have already add an LLM and an Embedding to Azure OpenAI Service. yet for the reranker I had to use Azure AI Foundry in Dify panel, but it does not work.
❌ Actual Behavior
I have deployed Cohere-rerank-v3-english in Azure AI Foundry.
When I want to add it to dify. It gives 400 (invalid_param) error.
400
@dosubot[bot] commented on GitHub (Feb 11, 2025):
Hey @alexmofidi! 👋 I'm here to help you with your bug report. I'm a bot that can assist with bug fixes, answer your questions, and even guide you on how to become a contributor. Let's tackle this issue together!
I found a similar open issue regarding the HTTP Error 404 when registering the Cohere-rerank-v3-multilingual model in Azure AI Studio with Dify. The suggested solution includes the following steps:
Register and Apply for API Key: Ensure you have registered and applied for the Rerank model usage qualification to obtain the API key from Cohere Rerank.
Configure the Re-rank Model in Dify:
Set the Re-rank Model in Dataset Retrieval Mode:
Ensure Correct API Endpoint: Verify that the API endpoint is correct and accessible. A 404 error typically indicates an incorrect endpoint or a non-existent resource. According to the Dify code, the endpoint and API key must be provided in the credentials:
Verify Model Version: Ensure you are using a supported model version. The supported versions for the multilingual model are:
If these steps do not resolve the issue, double-check the API endpoint and ensure the API key is valid and has the necessary permissions. There is also a known issue in the Dify codebase regarding the registration of rerank models with Azure AI Studio, where the
validate_credentialsfunction raises aCredentialsValidateFailedErrorfor invalid credentials [1].To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other
@saito-hiroaki-gtt commented on GitHub (Mar 16, 2025):
Hello.
I am experiencing the same issue.
I've confirmed this issue on the self-hosted version v0.15.3 and the cloud version v1.0.0.
Since there are few options for Rerank models, I feel the impact is not small. Are there any plans for a fix?
@dosubot[bot] commented on GitHub (Mar 16, 2025):
@crazywoola, the user @saito-hiroaki-gtt has confirmed that the issue with the HTTP Error 404 when registering the Cohere-rerank-v3-multilingual model is still relevant, affecting both the self-hosted version v0.15.3 and the cloud version v1.0.0. Could you please assist them with this?