初始化

更新知识库配置

Changed on

根据知识库ID更新模型和分块配置

put/initialization/config/{kbId}

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/initialization/config/{kbId}
  • Auth
    • API key in header Authorization
    • or API key in header X-API-Key

Path parameters

kbIdstring required

知识库ID

Request body

embeddingModelIdstring

optional when RAG indexing is disabled

llmModelIdstring required
storageBackendIdstring
storageProviderstring

存储引擎选择("local" | "minio" | "cos"),影响文档上传与文档内图片存储,参数从全局设置读取

Response

更新成功

messagestring
successboolean

Example response

{
  "success": true
}

Changes