📖Upload Document

Upload a document to a collection. Currently we support a maximum file size of 10 MB and the following content types

  • PDF (.pdf)

  • Plaintext (.txt)

  • CSV (.csv)

  • Markdown (.md)

  • Microsoft Words (.docx)

Documents have to be uniquely named. If one document is uploaded with a name that is the same as one already uploaded, it will replace that document.

POST /docs/add HTTP/1.1
Api-Key: my_api_key
Host: my_account_id.us-west-2.aws.chatbees.ai

Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

Content-Disposition: form-data; name="file"; filename="example.txt"
Content-Type: text/plain

[File content here]

Content-Disposition: form-data; name="request"

  "namespace_name": "string",
  "collection_name": "string"

Last updated