cURL
curl --request POST \ --url https://rag-prod.studio.lyzr.ai/v3/train/docx/ \ --header 'Content-Type: multipart/form-data' \ --header 'x-api-key: <api-key>' \ --form data_parser=docx2txt \ --form 'extra_info={}'
{ "message": "DOCX parsing and training completed successfully", "rag_id": "6848ff3c4c291b4bef798e0c", "document_count": 1 }
Upload a DOCX file to train and add content into a specific RAG configuration.
The ID of the RAG configuration to which this document will be added.
DOCX trained successfully
The response is of type object.
object