Ana içeriğe geç

Create a knowledge source

POST 

/api/knowledge/sources

Create and ingest a knowledge source (admin only).

text / qa sources are chunked and embedded synchronously; the returned source reports its status (ready on success, failed if AI is unusable or embedding errored).

file sources (pdf / docx / txt / md) are stored on the knowledge disk and parsed asynchronously — the row may come back processing and flip to ready once the background job settles. The endpoint accepts both application/json (text / qa) and multipart/form-data (file).

Request​

Responses​

Created knowledge source.