Get Sentence Similarity. Returns a 424 status code if the model is not an embedding model.
Request body
Example request
{
"inputs": {
"sentences": [
"What is Machine Learning?"
],
"source_sentence": "What is Deep Learning?"
},
"parameters": {
"prompt_name": "null"
}
}Response
Sentence Similarity
Example response
[ 0, 1, 0.5 ]
Changes
Changed in 3 of the 42 revisions of this API.143
- ●
added the new
Emptyenum value to theerror_typeresponse property for the response status413response-property-enum-value-added
- ●
added the new
Emptyenum value to theerror_typeresponse property for the response status422response-property-enum-value-added
- ●
added the new
Emptyenum value to theerror_typeresponse property for the response status424response-property-enum-value-added
- ●
added the new
Emptyenum value to theerror_typeresponse property for the response status429response-property-enum-value-added
- ○
the request property
parameters/allOf[SimilarityParameters]/truncation_directionbecame optionalrequest-property-became-optional
- ○
added the non-success response with the status
400response-non-success-status-added
- ●
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 30 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲