Text Embeddings Inference
Get Sentence Similarity. Returns a 424 status code if the model is not an embedding model.
post/similarity
Request
- The document declares no server URL.
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
No recorded changes to this operation across all 1 revision of this API.