cURL
curl --request POST \ --url https://rag-prod.studio.lyzr.ai/v3/train/pdf/ \ --header 'Content-Type: multipart/form-data' \ --header 'x-api-key: <api-key>' \ --form file='@example-file' \ --form data_parser=llmsherpa \ --form 'extra_info={}'
{ "message": "PDF parsing and training completed successfully", "rag_id": "6848ff3c4c291b4bef798e0c", "document_count": 20 }
Upload a PDF 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 PDF file to upload and train.
Optional parser type. (e.g., "llmsherpa")
Optional additional metadata in stringified JSON.
PDF trained successfully
"PDF parsing and training completed successfully"
"6848ff3c4c291b4bef798e0c"
20