Skip to main content
POST
创建知识库

Authorizations

Authorization
string
header
required

标准的 HTTP Bearer 认证方式,在 API Keys 页面获取密钥。

Body

application/json
embedding_id
enum<integer>
required

知识库绑定的向量化模型ID。可选值:

  • 3: Embedding-2
  • 11: Embedding-3
  • 12: Embedding-3-pro
Available options:
3,
11,
12
name
string
required

知识库名称

embedding_model
enum<string>

知识库绑定的向量化模型code。可选值:

  • Embedding-2
  • Embedding-3
  • Embedding-3-pro
Available options:
Embedding-2,
Embedding-3,
Embedding-3-pro
contextual
enum<integer>

是否开启上下文增强

Available options:
0,
1
description
string

知识库描述

background
string

背景颜色,可选:blue, red, orange, purple, sky, green, yellow,默认blue

icon
string

知识库图标,可选:question, book, seal, wrench, tag, horn, house,默认question

Response

业务处理成功

data
object
code
integer

响应码,200为成功

message
string

响应信息

timestamp
integer

响应时间戳