新增知识碎片(新增附件)
联调中POST
/rag/chunk/create请求参数
Body 参数application/json
contentWithWeight
string
必需
docId
string
必需
importantKwd
array[string]
必需
attachments
array[integer]
必需
示例
{
"contentWithWeight": "asdfasdfsd",
"docId": "17e766a428a511efb03e0242ac120002",
"importantKwd": [
"asdfasdfs"
],
"attachments": [
416,
417
]
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
msg
string
必需
data
object
必需
chunkId
string
必需
示例
{
"code": 0,
"msg": "success",
"data": {
"chunkId": "14a9de818af0eac56366d639f0fc7f96"
}
}
修改于 1 天前