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 file='@example-file' \ --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.
The DOCX file to upload and train.
Optional parser type. (e.g., "docx2txt")
Optional additional metadata in stringified JSON.
DOCX trained successfully
"DOCX parsing and training completed successfully"
"6848ff3c4c291b4bef798e0c"
1