修改知识库文档
开发环境
开发环境
POST
/v1/embedding/update_document
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v1/embedding/update_document?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues' \
--data-raw '{
"operator_id": 45033223333,
"knowledge_base_id": ${knowledge_base_id},
"file_id": ${file_id},
"doc_params": {
"chunk_size": 500,
"chunk_overlap": 50,
"separators": ["/n"],
"is_regex": true
}
}'
响应示例响应示例
{
"file_id": 0,
"knowledge_base_id": ${knowledge_base_id},
"knowledge_base": {
"knowledge_base_id": ${knowledge_base_id},
"name": "test3",
"description": "",
"embedding_model": "kbq-001",
"create_time": 1700742086395,
"insert_time": 1700796361445,
"delete_time": 1700796932183,
"docs": [],
"status": "loading"
},
"usage": null,
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}
请求参数
Query 参数
GroupId
string
必需
示例值:
${group_id}
Header 参数
content-type
string
必需
示例值:
application/json
Authorization
string
必需
示例值:
Bearer ${api_key}
Body 参数application/json
返回响应
修改于 2024-01-04 05:53:07