Skip to content

Add Azure AI Rerank support #129848

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Evgenii-Kazannik
Copy link
Contributor

@Evgenii-Kazannik Evgenii-Kazannik commented Jun 23, 2025

As of now, it appearsthat only the Cohere provider is applicable for reranking
Azure AI Foundry Models available for standard deployment
Cohere docs

PUT {{base-url}}/_inference/rerank/cohere
{
"service": "azureaistudio",
"service_settings": {
"target": "https://Cohere-rerank-v3-5-samwq.swedencentral.models.ai.azure.com",
"provider": "COHERE",
"endpoint_type": "token",
"api_key": "{{cohere-api-key}}"
},
"task_settings": {
"top_n": 2,
"return_documents": true
}
}


POST {{base-url}}/_inference/rerank/cohere
{

"input": ["Luke", "like", "leia", "chewy","r2d2", "star", "wars"],
"query": "star wars main character",
"top_n": 7,
"return_documents": true
}

@elasticsearchmachine elasticsearchmachine added v9.1.0 external-contributor Pull request authored by a developer outside the Elasticsearch team labels Jun 23, 2025
@Evgenii-Kazannik Evgenii-Kazannik force-pushed the Add-Azure-AI-Foundry-Rerank-support branch from 3c5f0eb to 9ba481d Compare June 25, 2025 09:02
@Evgenii-Kazannik Evgenii-Kazannik marked this pull request as ready for review June 25, 2025 09:16
@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v9.2.0 and removed v9.1.0 labels Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-contributor Pull request authored by a developer outside the Elasticsearch team needs:triage Requires assignment of a team area label v9.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants