查询知识库列表
接口描述(Description)
查询当前账户下存在的知识库列表
请求地址(Request URL)
[GET] https://api.sensenova.cn/v1/llm/knowledge-bases
请求头(Request Header)
无特殊Header,请参考接口鉴权
请求示例(Request Example)
curl --request GET "https://api.sensenova.cn/v1/llm/knowledge-bases" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $API_TOKEN"
响应(Response)
| 名称 | 类型 | 描述 | 
|---|---|---|
| knowledge_bases | object[] | 知识库列表 | 
- knowledge_bases部分参数如下:
| 名称 | 类型 | 描述 | 
|---|---|---|
| id | string | 知识库ID | 
| description | string | 知识库描述 | 
| status | string | 知识库状态 可用: AVAILABLE不可用: UNAVAILABLE正在准备: LOADING等待中: PENDING | 
| files | object[] | 知识库文件列表 | 
| configs | object | 知识库构建参数详情 | 
| created_at | string | 知识库创建时间,ISO 8601标准时间格式,精确到纳秒 | 
| updated_at | string | 知识库更新时间,ISO 8601标准时间格式,精确到纳秒 | 
- files部分参数如下:
| 名称 | 类型 | 描述 | 
|---|---|---|
| id | string | 文件ID | 
| description | string | 文件描述 | 
| status | string | 文件状态,枚举值 未上传/上传中: NOTUPLOADED已上传: UPLOADED文件无效: INVALID文件有效: VALID | 
- configs部分参数如下:
| 名称 | 类型 | 描述 | 
|---|---|---|
| text_split | object | 文本分割配置 | 
| embedding | object | embedding配置 | 
- text_split部分参数如下:
| 名称 | 类型 | 描述 | 
|---|---|---|
| mode | string | 文本分割模式 | 
| config | object | delimiter模式下的分隔符配置,semantics模式无此配置 | 
- config部分参数如下:
| 名称 | 类型 | 描述 | 
|---|---|---|
| max_length | string | 每个分割片段最大字数长度 | 
| punctuations | object[] | 分割每个片段的标记符号列表 | 
- punctuations部分参数如下:
| 名称 | 类型 | 描述 | 
|---|---|---|
| mark | string | 分割标记 | 
| priority | int | 分割标记优先级 | 
- embedding部分参数如下:
| 名称 | 类型 | 描述 | 
|---|---|---|
| model | string | 模型ID | 
响应示例(Response Example)
{
    "knowledge_bases": [
        {
            "id" : "string",
            "description": "string", 
            "status": "string", 
            "files":[
                {
                    "id": "string", 
                    "description": "string", 
                    "status": "string" 
                }
            ],            
            "configs":{
                "text_split":{
                    "mode": "string",
                    "config": {}
                },
                "embedding":{
                    "model": "string"
                }
            },     
            "created_at": "2023-06-28T17:23:01.243566533Z",     
            "updated_at": "2023-06-28T17:23:01.243566533Z"     
        }
    ]
}
错误信息
参考错误码