v1

latestOpenAPI 3.0.3Apache 2.02026-07-17124150.8 KB
Text Embeddings Inference

Get Ranks. Returns a 424 status code if the model is not a Sequence Classification model with

a single class.

post/rerank

Request body

querystring required
raw_scoresboolean
return_textboolean
textsstring[] required
truncateboolean nullable
truncation_direction'Left' | 'Right'

Example request

{
  "query": "What is Deep Learning?",
  "texts": [
    "Deep Learning is ..."
  ]
}

Response

Ranks

indexinteger required
scorenumber float required
textstring nullable

Example response

[
  {
    "text": "Deep Learning is ..."
  }
]