句子相似度
POST/api/v5/similarity/
Request
Header Parameters
Authorization stringrequired
用户个人令牌
- application/json
Body
model模型名称 (string)required
inputs objectrequired
source_sentence对比的源文本 (string)required
示例:"That is a happy person"
sentencesstring[]required
示例:["That is a happy dog", "That is a very happy person"]
Responses
- 200
Response Headers
- application/json
- Schema
- Example (auto)
- Example
Schema
- Array [
- ]
number
[
0
]
[
0.8220268487930298,
0.9805881381034851
]