PAI Chat·Endpoint
POST
/chatbot/{chatbotId}/documentUpload a document to a chatbot for RAG (Retrieval Augmented Generation). Support
Upload a document to a chatbot for RAG (Retrieval Augmented Generation). Supports PDF, Excel, Word, CSV, and text files up to 50MB.
DELETE/chatbot/{chatbotId}/document/{documentId}arrow_forwardtune
Parameters
chatbotIdrequiredpath
string (uuid)The ID of the chatbot instance to upload the document to
double_arrow
Returns 201
documentIdrequired
string (uuid)The UUID for the uploaded document
filenamerequired
stringThe name of the uploaded file
fileSizerequired
numberSize of the file in bytes
statusrequired
stringProcessing status (uploading, processing, ready, failed)
messagerequired
stringSuccess message
report
Errors