Text Embeddings Inference
Get Sentence Similarity. Returns a 424 status code if the model is not an embedding model.
Changed onpost/similarity
Request
- The document declares no server URL.
- Authnone declared
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 ]
Changes
- warning
added the new
Emptyenum value to theresponse property for the response status - warning
added the new
Emptyenum value to theresponse property for the response status - warning
added the new
Emptyenum value to theresponse property for the response status - warning
added the new
Emptyenum value to theresponse property for the response status - info
the request property
/////became optional - info
added the non-success response with the status
- warning
- info
endpoint added
- info