v1

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

Get Sentence Similarity. Returns a 424 status code if the model is not an embedding model.

post/similarity

Request body

Example request

{
  "inputs": {
    "sentences": [
      "What is Machine Learning?"
    ],
    "source_sentence": "What is Deep Learning?"
  },
  "parameters": {
    "prompt_name": "null"
  }
}

Response

Sentence Similarity

number[] required

Example response

[
  0,
  1,
  0.5
]