QamaqQamaq
POST

上传文件

/knowledge

将文件上传到知识库。文件会自动进行文本提取和向量化处理。

请求体

multipart/form-data必填
{
file*:string (binary)

The file to upload

folder_id:string

Folder to upload to

description:string

File description

tags:string

Comma-separated tags

}

代码示例

curl -X POST "https://api.qamaq.io/api/v1/knowledge" \
  -H "Authorization: Bearer qmq_your_api_key"

响应

201File uploaded successfully

Response Body

{
id:string
name:string
status:string
message:string
}