Knowledge Sources

Create Knowledge Source

Changed on

Upload a plain-text or Markdown file (UTF-8, up to 1 MB) as a knowledge source. Send multipart/form-data with the file in source; name defaults to the file name. Attach it to agents via the agent config's knowledge_base.knowledge_source_ids.

post/v1/agent/knowledge-sources

Request

  • Base URL
    https://api.fish.audio
  • URL
    https://api.fish.audio/v1/agent/knowledge-sources
  • Auth
    HTTP bearer

Request body multipart/form-data

sourcestring binary required
namestring nullable
descriptionstring

Response

Document created, URL follows

knowledge_source_idstring required
workspace_idstring required
namestring required
descriptionstring
file_namestring required
size_bytesinteger required
chunk_countinteger required
revision_numberinteger required

Increments every time the content is replaced. Drafts always use the newest revision; published versions pin the revision current at publish time.

created_atstring date-time required
updated_atstring date-time required
contentstring required

The full current text content.

Changes