Uploading files to a specified knowledge base Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Example:Bearer {{YOUR_API_KEY}}
Body Params multipart/form-data
Specify the knowledge base to be uploaded
Maximum length of a single paragraph of text in the knowledge base
Adjacent text overlap length in the knowledge base
Specify the participle pattern, either leave it blank or fill it with jina.
Effective when jina is specified as the lexical mode.
Request samples
curl --location --request POST 'https://api.302.ai/302/kb/create_knowledge_base/upload/files' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--form 'files=@""' \
--form 'kb_id="0"' \
--form 'chunk_size="250"' \
--form 'chunk_overlap="50"' \
--form 'split_mode=""' \
--form 'max_chunk_length="4000"'
Responses
application/json Modified at 2024-10-24 08:33:00