Skip to main content
POST
Train DOCX for RAG

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
file
file
required

The DOCX file to upload and train.

data_parser
string
default:docx2txt

Optional parser type. (e.g., "docx2txt")

extra_info
string
default:{}

Optional additional metadata in stringified JSON.

Response

DOCX trained successfully

message
string
Example:

"DOCX parsing and training completed successfully"

rag_id
string
Example:

"6848ff3c4c291b4bef798e0c"

document_count
integer
Example:

1