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 ]