POST
/
train
/
pdf
/
Train PDF for RAG
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 data_parser=llmsherpa \
  --form 'extra_info={}'
{
  "message": "PDF parsing and training completed successfully",
  "rag_id": "6848ff3c4c291b4bef798e0c",
  "document_count": 20
}

Authorizations

x-api-key
string
header
required

Query Parameters

rag_id
string
required

The ID of the RAG configuration to which this document will be added.

Body

multipart/form-data

Response

200
application/json

PDF trained successfully

The response is of type object.