Text Embeddings Inference

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

Changed on

a single class.

post/rerank

Request

  • The document declares no server URL.
  • Auth
    none declared

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 ..."
  }
]

Changes

    • warning

      added the new Empty enum value to the response property for the response status

    • warning

      added the new Empty enum value to the response property for the response status

    • warning

      added the new Empty enum value to the response property for the response status

    • warning

      added the new Empty enum value to the response property for the response status

    • info

      added the non-success response with the status

    • info

      added the new optional request property

    • info

      the request property became nullable