v1

latestOpenAPI 3.0.32026-07-26451985.7 KB

sentence-similarity

Measure how similar two sentences are for applications like duplicate question detection, paraphrase detection, and text clustering

post/models/v2/sentence-transformers/all-MiniLM-L6-v2

Request body

textstring required

The input text

Example request

{
  "text": "search_document: Turn this text into a vector"
}

Response

Successful sentence-similarity response.

errorstring nullable required

Null on success; otherwise an error message.

Example response

{
  "output": [
    0.1,
    0.2,
    0.3,
    0.4
  ]
}