Rerank V1:0

amazon/amazon.rerank-v1:0 by Amazon Web Services
RerankOpenAI-compatible · Sync · Text input · EU hosting
Price from
$0.001 / search
Tasks
1
Rerank
Regions
Europe
Mode
sync
Input
Text
Output
results

About Amazon Web Services Rerank V1:0

Reorder a list of documents by their relevance to a query, to improve search and retrieval-augmented generation.

Amazon Web Services Rerank V1:0 is an Amazon Web Services model available on Eden AI through its OpenAI-compatible API, from $0.001 / search. Call it with the same API key as every other Eden AI model by sending its model ID to the /v3/rerank endpoint, or through any OpenAI SDK, with processing in Europe.

Learn more about Rerank APIs on Eden AI

Tasks and prices

Amazon Web Services Rerank V1:0 is available on Eden AI for 1 tasks. It is served through Eden AI's OpenAI-compatible API: send its model ID to the /v3/rerank endpoint with your Eden AI API key.

Task
Price
Regions
Mode
Docs
Playground
Rerankamazon/amazon.rerank-v1:0
$0.001 / search
sync

Parameters

What you send and what you get back when you call Amazon Web Services Rerank V1:0 through Eden AI. The same fields work with every model of the same task, so you can switch model without changing your code.

Input

  • model (required): text. The model ID, as provider/model.
  • query (required): text. The search query.
  • documents (required): list. The documents to rank against the query.
  • top_n: number. How many results to return.

Response

  • results

Estimate your monthly cost

Enter your monthly volume for Rerank to compare Amazon Web Services Rerank V1:0 with its cheapest alternatives.

Call Amazon Web Services Rerank V1:0 with Eden AI

Send the model ID to the OpenAI-compatible /v3/rerank endpoint. Any OpenAI SDK works too: set its base URL to https://api.edenai.run/v3.

import requests

response = requests.post(
    "https://api.edenai.run/v3/rerank",
    headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
    json={
        "model": "amazon/amazon.rerank-v1:0",
        "query": "How do I reset my password?",
        "documents": [
            "Billing happens on the first day of each month.",
            "To reset your password, open Settings and choose Security.",
        ],
        "top_n": 1,
    },
)
print(response.json())

Questions about Amazon Web Services Rerank V1:0

On Eden AI, Amazon Web Services Rerank V1:0 costs $0.001 / search for Rerank. The Tasks and prices table lists the price for each task, and you only pay for what you use.

On Eden AI, Amazon Web Services Rerank V1:0 is available for: Rerank. Input: Text. Output: results.

Can I use Amazon Web Services Rerank V1:0 in the EU? Yes. Amazon Web Services Rerank V1:0 is processed in Europe for at least one task: see the Regions column in the Tasks and prices table.

Eden AI offers Rerank from 9 providers, all callable with the same API key. The cheapest models are compared just below.

More from Amazon Web Services

Other Amazon Web Services models on Eden AI, for every task.