Open grapswiz opened 1 month ago
I'm having the same problem
There are several points in api/core/model_runtime/model_providers/azure_ai_studio/rerank/rerank.py that are not in line with the actual situation.
_azure_rerank()
, you need to pass "query” and “documents” keys for body
, not "inputs" and "docs"._invoke()
, the expected result
format is different from the actual one and needs to be corrected.I'm not sure if this is the right way to handle the problem, though it seems to be working for the time being in my environment.
Second this request. Not just Cohere, but enable APIs from any third-party model deployed in Azure AI Studio.
I'm having the same problem too. Can not use Re-rank model
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
Yes, I tried to use Cohere's Rerank model from Azure AI Studio for reranking search results, but Dify does not support this model, so I was unable to use it. Since we operate all of our resources on Azure, not being able to use this feature affects our operational efficiency. Enabling the Rerank model would allow us to centralize resource management on Azure, providing significant benefits in terms of security and cost management.
2. Additional context or comments
3. Can you help us with this feature?