Text Embeddings Inference

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

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

post/rerank

Request body

textsstring[] required
querystring required
raw_scoresboolean
return_textboolean
truncateboolean

Example request

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

Response

Ranks

indexinteger required
textstring nullable
scorenumber float required

Example response

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

Changes