curl --request POST \
--url https://api-spectra.duplik.cn/v1/knowledge/{knowledge_id}/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
"\n{\n \"files\": [\n {\n \"original_metadata\": {\n \"file_name\": \"SY500 service manual.pdf\",\n \"type\": \"application/pdf\",\n \"byte_size\": 2418879,\n \"source_type\": \"file_storage\"\n },\n \"url\": \"https://cos-qa-1252068037.cos.ap-beijing.myqcloud.com/org_id/648237335564370d02451d0-bde6-4cd6-9e5d-b65ba1709059.pdf\",\n \"document_metadata\": {\n \"title\": \"SY500 Service Manual\",\n \"entity_names\": [\n \"model:SY500\",\n \"theme:hydraulics\"\n ],\n \"custom_data\": {\n \"source\": \"erp\"\n }\n }\n }\n ],\n \"folder_id\": \"\",\n \"process_document\": true,\n \"document_setting\": {\n \"pdf_parsing_mode\": 2,\n \"audio_parsing_mode\": 1,\n \"pdf_parsing_element_types\": [\n 1,\n 2\n ],\n \"smart_indexing_enabled\": false,\n \"smart_indexing_mode\": 0,\n \"overall_summarize_enabled\": true\n },\n \"source_type\": \"file_storage\"\n}\n"
'import requests
url = "https://api-spectra.duplik.cn/v1/knowledge/{knowledge_id}/files"
payload = "
{
\"files\": [
{
\"original_metadata\": {
\"file_name\": \"SY500 service manual.pdf\",
\"type\": \"application/pdf\",
\"byte_size\": 2418879,
\"source_type\": \"file_storage\"
},
\"url\": \"https://cos-qa-1252068037.cos.ap-beijing.myqcloud.com/org_id/648237335564370d02451d0-bde6-4cd6-9e5d-b65ba1709059.pdf\",
\"document_metadata\": {
\"title\": \"SY500 Service Manual\",
\"entity_names\": [
\"model:SY500\",
\"theme:hydraulics\"
],
\"custom_data\": {
\"source\": \"erp\"
}
}
}
],
\"folder_id\": \"\",
\"process_document\": true,
\"document_setting\": {
\"pdf_parsing_mode\": 2,
\"audio_parsing_mode\": 1,
\"pdf_parsing_element_types\": [
1,
2
],
\"smart_indexing_enabled\": false,
\"smart_indexing_mode\": 0,
\"overall_summarize_enabled\": true
},
\"source_type\": \"file_storage\"
}
"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify('\n{\n "files": [\n {\n "original_metadata": {\n "file_name": "SY500 service manual.pdf",\n "type": "application/pdf",\n "byte_size": 2418879,\n "source_type": "file_storage"\n },\n "url": "https://cos-qa-1252068037.cos.ap-beijing.myqcloud.com/org_id/648237335564370d02451d0-bde6-4cd6-9e5d-b65ba1709059.pdf",\n "document_metadata": {\n "title": "SY500 Service Manual",\n "entity_names": [\n "model:SY500",\n "theme:hydraulics"\n ],\n "custom_data": {\n "source": "erp"\n }\n }\n }\n ],\n "folder_id": "",\n "process_document": true,\n "document_setting": {\n "pdf_parsing_mode": 2,\n "audio_parsing_mode": 1,\n "pdf_parsing_element_types": [\n 1,\n 2\n ],\n "smart_indexing_enabled": false,\n "smart_indexing_mode": 0,\n "overall_summarize_enabled": true\n },\n "source_type": "file_storage"\n}\n')
};
fetch('https://api-spectra.duplik.cn/v1/knowledge/{knowledge_id}/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-spectra.duplik.cn/v1/knowledge/{knowledge_id}/files",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode('
{
"files": [
{
"original_metadata": {
"file_name": "SY500 service manual.pdf",
"type": "application/pdf",
"byte_size": 2418879,
"source_type": "file_storage"
},
"url": "https://cos-qa-1252068037.cos.ap-beijing.myqcloud.com/org_id/648237335564370d02451d0-bde6-4cd6-9e5d-b65ba1709059.pdf",
"document_metadata": {
"title": "SY500 Service Manual",
"entity_names": [
"model:SY500",
"theme:hydraulics"
],
"custom_data": {
"source": "erp"
}
}
}
],
"folder_id": "",
"process_document": true,
"document_setting": {
"pdf_parsing_mode": 2,
"audio_parsing_mode": 1,
"pdf_parsing_element_types": [
1,
2
],
"smart_indexing_enabled": false,
"smart_indexing_mode": 0,
"overall_summarize_enabled": true
},
"source_type": "file_storage"
}
'),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-spectra.duplik.cn/v1/knowledge/{knowledge_id}/files"
payload := strings.NewReader("\"\\n{\\n \\\"files\\\": [\\n {\\n \\\"original_metadata\\\": {\\n \\\"file_name\\\": \\\"SY500 service manual.pdf\\\",\\n \\\"type\\\": \\\"application/pdf\\\",\\n \\\"byte_size\\\": 2418879,\\n \\\"source_type\\\": \\\"file_storage\\\"\\n },\\n \\\"url\\\": \\\"https://cos-qa-1252068037.cos.ap-beijing.myqcloud.com/org_id/648237335564370d02451d0-bde6-4cd6-9e5d-b65ba1709059.pdf\\\",\\n \\\"document_metadata\\\": {\\n \\\"title\\\": \\\"SY500 Service Manual\\\",\\n \\\"entity_names\\\": [\\n \\\"model:SY500\\\",\\n \\\"theme:hydraulics\\\"\\n ],\\n \\\"custom_data\\\": {\\n \\\"source\\\": \\\"erp\\\"\\n }\\n }\\n }\\n ],\\n \\\"folder_id\\\": \\\"\\\",\\n \\\"process_document\\\": true,\\n \\\"document_setting\\\": {\\n \\\"pdf_parsing_mode\\\": 2,\\n \\\"audio_parsing_mode\\\": 1,\\n \\\"pdf_parsing_element_types\\\": [\\n 1,\\n 2\\n ],\\n \\\"smart_indexing_enabled\\\": false,\\n \\\"smart_indexing_mode\\\": 0,\\n \\\"overall_summarize_enabled\\\": true\\n },\\n \\\"source_type\\\": \\\"file_storage\\\"\\n}\\n\"")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-spectra.duplik.cn/v1/knowledge/{knowledge_id}/files")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("\"\\n{\\n \\\"files\\\": [\\n {\\n \\\"original_metadata\\\": {\\n \\\"file_name\\\": \\\"SY500 service manual.pdf\\\",\\n \\\"type\\\": \\\"application/pdf\\\",\\n \\\"byte_size\\\": 2418879,\\n \\\"source_type\\\": \\\"file_storage\\\"\\n },\\n \\\"url\\\": \\\"https://cos-qa-1252068037.cos.ap-beijing.myqcloud.com/org_id/648237335564370d02451d0-bde6-4cd6-9e5d-b65ba1709059.pdf\\\",\\n \\\"document_metadata\\\": {\\n \\\"title\\\": \\\"SY500 Service Manual\\\",\\n \\\"entity_names\\\": [\\n \\\"model:SY500\\\",\\n \\\"theme:hydraulics\\\"\\n ],\\n \\\"custom_data\\\": {\\n \\\"source\\\": \\\"erp\\\"\\n }\\n }\\n }\\n ],\\n \\\"folder_id\\\": \\\"\\\",\\n \\\"process_document\\\": true,\\n \\\"document_setting\\\": {\\n \\\"pdf_parsing_mode\\\": 2,\\n \\\"audio_parsing_mode\\\": 1,\\n \\\"pdf_parsing_element_types\\\": [\\n 1,\\n 2\\n ],\\n \\\"smart_indexing_enabled\\\": false,\\n \\\"smart_indexing_mode\\\": 0,\\n \\\"overall_summarize_enabled\\\": true\\n },\\n \\\"source_type\\\": \\\"file_storage\\\"\\n}\\n\"")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-spectra.duplik.cn/v1/knowledge/{knowledge_id}/files")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "\"\\n{\\n \\\"files\\\": [\\n {\\n \\\"original_metadata\\\": {\\n \\\"file_name\\\": \\\"SY500 service manual.pdf\\\",\\n \\\"type\\\": \\\"application/pdf\\\",\\n \\\"byte_size\\\": 2418879,\\n \\\"source_type\\\": \\\"file_storage\\\"\\n },\\n \\\"url\\\": \\\"https://cos-qa-1252068037.cos.ap-beijing.myqcloud.com/org_id/648237335564370d02451d0-bde6-4cd6-9e5d-b65ba1709059.pdf\\\",\\n \\\"document_metadata\\\": {\\n \\\"title\\\": \\\"SY500 Service Manual\\\",\\n \\\"entity_names\\\": [\\n \\\"model:SY500\\\",\\n \\\"theme:hydraulics\\\"\\n ],\\n \\\"custom_data\\\": {\\n \\\"source\\\": \\\"erp\\\"\\n }\\n }\\n }\\n ],\\n \\\"folder_id\\\": \\\"\\\",\\n \\\"process_document\\\": true,\\n \\\"document_setting\\\": {\\n \\\"pdf_parsing_mode\\\": 2,\\n \\\"audio_parsing_mode\\\": 1,\\n \\\"pdf_parsing_element_types\\\": [\\n 1,\\n 2\\n ],\\n \\\"smart_indexing_enabled\\\": false,\\n \\\"smart_indexing_mode\\\": 0,\\n \\\"overall_summarize_enabled\\\": true\\n },\\n \\\"source_type\\\": \\\"file_storage\\\"\\n}\\n\""
response = http.request(request)
puts response.read_body[
{
"org_id": "<string>",
"user_id": "<string>",
"dataset_id": "<string>",
"file_id": "<string>",
"document_id": "<string>",
"created_at": 123,
"updated_at": 123,
"overall_summarize_enabled": true,
"smart_indexing_mode": 0,
"smart_indexing_enabled": true,
"split_media_enabled": true,
"pdf_parsing_mode": 2,
"pdf_parsing_element_types": [
1,
2
],
"read_pdf_pages": "<string>",
"audio_parsing_mode": 123,
"audio_chunk_mode": 1,
"name": "<string>",
"document_type": 1,
"next_step": true,
"llm": {},
"metadata_info": {},
"task_priority": 123,
"description": "",
"summary": "",
"step_status": 100,
"status": 1,
"process_status": 100,
"version": 2,
"splitter_type": 1,
"splitter": {},
"sections": [],
"content_text": "<string>",
"trim_text": true
}
]{
"code": 123,
"message": "<string>"
}{
"code": 123,
"message": "<string>"
}{
"code": 123,
"message": "<string>"
}Upload Knowledge Files
上传文件到指定知识库目录
curl --request POST \
--url https://api-spectra.duplik.cn/v1/knowledge/{knowledge_id}/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
"\n{\n \"files\": [\n {\n \"original_metadata\": {\n \"file_name\": \"SY500 service manual.pdf\",\n \"type\": \"application/pdf\",\n \"byte_size\": 2418879,\n \"source_type\": \"file_storage\"\n },\n \"url\": \"https://cos-qa-1252068037.cos.ap-beijing.myqcloud.com/org_id/648237335564370d02451d0-bde6-4cd6-9e5d-b65ba1709059.pdf\",\n \"document_metadata\": {\n \"title\": \"SY500 Service Manual\",\n \"entity_names\": [\n \"model:SY500\",\n \"theme:hydraulics\"\n ],\n \"custom_data\": {\n \"source\": \"erp\"\n }\n }\n }\n ],\n \"folder_id\": \"\",\n \"process_document\": true,\n \"document_setting\": {\n \"pdf_parsing_mode\": 2,\n \"audio_parsing_mode\": 1,\n \"pdf_parsing_element_types\": [\n 1,\n 2\n ],\n \"smart_indexing_enabled\": false,\n \"smart_indexing_mode\": 0,\n \"overall_summarize_enabled\": true\n },\n \"source_type\": \"file_storage\"\n}\n"
'import requests
url = "https://api-spectra.duplik.cn/v1/knowledge/{knowledge_id}/files"
payload = "
{
\"files\": [
{
\"original_metadata\": {
\"file_name\": \"SY500 service manual.pdf\",
\"type\": \"application/pdf\",
\"byte_size\": 2418879,
\"source_type\": \"file_storage\"
},
\"url\": \"https://cos-qa-1252068037.cos.ap-beijing.myqcloud.com/org_id/648237335564370d02451d0-bde6-4cd6-9e5d-b65ba1709059.pdf\",
\"document_metadata\": {
\"title\": \"SY500 Service Manual\",
\"entity_names\": [
\"model:SY500\",
\"theme:hydraulics\"
],
\"custom_data\": {
\"source\": \"erp\"
}
}
}
],
\"folder_id\": \"\",
\"process_document\": true,
\"document_setting\": {
\"pdf_parsing_mode\": 2,
\"audio_parsing_mode\": 1,
\"pdf_parsing_element_types\": [
1,
2
],
\"smart_indexing_enabled\": false,
\"smart_indexing_mode\": 0,
\"overall_summarize_enabled\": true
},
\"source_type\": \"file_storage\"
}
"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify('\n{\n "files": [\n {\n "original_metadata": {\n "file_name": "SY500 service manual.pdf",\n "type": "application/pdf",\n "byte_size": 2418879,\n "source_type": "file_storage"\n },\n "url": "https://cos-qa-1252068037.cos.ap-beijing.myqcloud.com/org_id/648237335564370d02451d0-bde6-4cd6-9e5d-b65ba1709059.pdf",\n "document_metadata": {\n "title": "SY500 Service Manual",\n "entity_names": [\n "model:SY500",\n "theme:hydraulics"\n ],\n "custom_data": {\n "source": "erp"\n }\n }\n }\n ],\n "folder_id": "",\n "process_document": true,\n "document_setting": {\n "pdf_parsing_mode": 2,\n "audio_parsing_mode": 1,\n "pdf_parsing_element_types": [\n 1,\n 2\n ],\n "smart_indexing_enabled": false,\n "smart_indexing_mode": 0,\n "overall_summarize_enabled": true\n },\n "source_type": "file_storage"\n}\n')
};
fetch('https://api-spectra.duplik.cn/v1/knowledge/{knowledge_id}/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-spectra.duplik.cn/v1/knowledge/{knowledge_id}/files",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode('
{
"files": [
{
"original_metadata": {
"file_name": "SY500 service manual.pdf",
"type": "application/pdf",
"byte_size": 2418879,
"source_type": "file_storage"
},
"url": "https://cos-qa-1252068037.cos.ap-beijing.myqcloud.com/org_id/648237335564370d02451d0-bde6-4cd6-9e5d-b65ba1709059.pdf",
"document_metadata": {
"title": "SY500 Service Manual",
"entity_names": [
"model:SY500",
"theme:hydraulics"
],
"custom_data": {
"source": "erp"
}
}
}
],
"folder_id": "",
"process_document": true,
"document_setting": {
"pdf_parsing_mode": 2,
"audio_parsing_mode": 1,
"pdf_parsing_element_types": [
1,
2
],
"smart_indexing_enabled": false,
"smart_indexing_mode": 0,
"overall_summarize_enabled": true
},
"source_type": "file_storage"
}
'),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-spectra.duplik.cn/v1/knowledge/{knowledge_id}/files"
payload := strings.NewReader("\"\\n{\\n \\\"files\\\": [\\n {\\n \\\"original_metadata\\\": {\\n \\\"file_name\\\": \\\"SY500 service manual.pdf\\\",\\n \\\"type\\\": \\\"application/pdf\\\",\\n \\\"byte_size\\\": 2418879,\\n \\\"source_type\\\": \\\"file_storage\\\"\\n },\\n \\\"url\\\": \\\"https://cos-qa-1252068037.cos.ap-beijing.myqcloud.com/org_id/648237335564370d02451d0-bde6-4cd6-9e5d-b65ba1709059.pdf\\\",\\n \\\"document_metadata\\\": {\\n \\\"title\\\": \\\"SY500 Service Manual\\\",\\n \\\"entity_names\\\": [\\n \\\"model:SY500\\\",\\n \\\"theme:hydraulics\\\"\\n ],\\n \\\"custom_data\\\": {\\n \\\"source\\\": \\\"erp\\\"\\n }\\n }\\n }\\n ],\\n \\\"folder_id\\\": \\\"\\\",\\n \\\"process_document\\\": true,\\n \\\"document_setting\\\": {\\n \\\"pdf_parsing_mode\\\": 2,\\n \\\"audio_parsing_mode\\\": 1,\\n \\\"pdf_parsing_element_types\\\": [\\n 1,\\n 2\\n ],\\n \\\"smart_indexing_enabled\\\": false,\\n \\\"smart_indexing_mode\\\": 0,\\n \\\"overall_summarize_enabled\\\": true\\n },\\n \\\"source_type\\\": \\\"file_storage\\\"\\n}\\n\"")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-spectra.duplik.cn/v1/knowledge/{knowledge_id}/files")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("\"\\n{\\n \\\"files\\\": [\\n {\\n \\\"original_metadata\\\": {\\n \\\"file_name\\\": \\\"SY500 service manual.pdf\\\",\\n \\\"type\\\": \\\"application/pdf\\\",\\n \\\"byte_size\\\": 2418879,\\n \\\"source_type\\\": \\\"file_storage\\\"\\n },\\n \\\"url\\\": \\\"https://cos-qa-1252068037.cos.ap-beijing.myqcloud.com/org_id/648237335564370d02451d0-bde6-4cd6-9e5d-b65ba1709059.pdf\\\",\\n \\\"document_metadata\\\": {\\n \\\"title\\\": \\\"SY500 Service Manual\\\",\\n \\\"entity_names\\\": [\\n \\\"model:SY500\\\",\\n \\\"theme:hydraulics\\\"\\n ],\\n \\\"custom_data\\\": {\\n \\\"source\\\": \\\"erp\\\"\\n }\\n }\\n }\\n ],\\n \\\"folder_id\\\": \\\"\\\",\\n \\\"process_document\\\": true,\\n \\\"document_setting\\\": {\\n \\\"pdf_parsing_mode\\\": 2,\\n \\\"audio_parsing_mode\\\": 1,\\n \\\"pdf_parsing_element_types\\\": [\\n 1,\\n 2\\n ],\\n \\\"smart_indexing_enabled\\\": false,\\n \\\"smart_indexing_mode\\\": 0,\\n \\\"overall_summarize_enabled\\\": true\\n },\\n \\\"source_type\\\": \\\"file_storage\\\"\\n}\\n\"")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-spectra.duplik.cn/v1/knowledge/{knowledge_id}/files")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "\"\\n{\\n \\\"files\\\": [\\n {\\n \\\"original_metadata\\\": {\\n \\\"file_name\\\": \\\"SY500 service manual.pdf\\\",\\n \\\"type\\\": \\\"application/pdf\\\",\\n \\\"byte_size\\\": 2418879,\\n \\\"source_type\\\": \\\"file_storage\\\"\\n },\\n \\\"url\\\": \\\"https://cos-qa-1252068037.cos.ap-beijing.myqcloud.com/org_id/648237335564370d02451d0-bde6-4cd6-9e5d-b65ba1709059.pdf\\\",\\n \\\"document_metadata\\\": {\\n \\\"title\\\": \\\"SY500 Service Manual\\\",\\n \\\"entity_names\\\": [\\n \\\"model:SY500\\\",\\n \\\"theme:hydraulics\\\"\\n ],\\n \\\"custom_data\\\": {\\n \\\"source\\\": \\\"erp\\\"\\n }\\n }\\n }\\n ],\\n \\\"folder_id\\\": \\\"\\\",\\n \\\"process_document\\\": true,\\n \\\"document_setting\\\": {\\n \\\"pdf_parsing_mode\\\": 2,\\n \\\"audio_parsing_mode\\\": 1,\\n \\\"pdf_parsing_element_types\\\": [\\n 1,\\n 2\\n ],\\n \\\"smart_indexing_enabled\\\": false,\\n \\\"smart_indexing_mode\\\": 0,\\n \\\"overall_summarize_enabled\\\": true\\n },\\n \\\"source_type\\\": \\\"file_storage\\\"\\n}\\n\""
response = http.request(request)
puts response.read_body[
{
"org_id": "<string>",
"user_id": "<string>",
"dataset_id": "<string>",
"file_id": "<string>",
"document_id": "<string>",
"created_at": 123,
"updated_at": 123,
"overall_summarize_enabled": true,
"smart_indexing_mode": 0,
"smart_indexing_enabled": true,
"split_media_enabled": true,
"pdf_parsing_mode": 2,
"pdf_parsing_element_types": [
1,
2
],
"read_pdf_pages": "<string>",
"audio_parsing_mode": 123,
"audio_chunk_mode": 1,
"name": "<string>",
"document_type": 1,
"next_step": true,
"llm": {},
"metadata_info": {},
"task_priority": 123,
"description": "",
"summary": "",
"step_status": 100,
"status": 1,
"process_status": 100,
"version": 2,
"splitter_type": 1,
"splitter": {},
"sections": [],
"content_text": "<string>",
"trim_text": true
}
]{
"code": 123,
"message": "<string>"
}{
"code": 123,
"message": "<string>"
}{
"code": 123,
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
用户ID
Body
file source, such as FILE_STORAGE, WEB
file_storage, web file list
100Show child attributes
Show child attributes
folder id
whether process document
Processing settings for this upload. Omit it and every setting follows the knowledge base; supplying it is all-or-nothing, so fields you leave out fall back to model defaults rather than the knowledge base
Show child attributes
Show child attributes
Response
Successful Response
2020Generate an overall summary. Boolean
Smart indexing mode. 0: disabled (recommended), 1: standard, 2: advanced
Enable smart indexing. Boolean. Takes effect only together with smart_indexing_mode 2 (advanced); leaving it false is recommended unless the corpus needs it, as it adds noticeable processing time and token cost
Generate media segments. Boolean
PDF parsing mode. 1: page, 2: section (recommended), 3: section v2
pdf parsing element list, eg: [1, 2]. 1: table, 2: image, 3: formula
read pdf pages, Example: '1,3,4' or '1,4-end' or 'all'
audio parsing mode, 1: transcript, 2: speaker diarization
256next step
task priority
512