Skip to main content
POST
Train TXT for RAG

Authorizations

x-api-key
string
header
required

Query Parameters

rag_id
string
required

The ID of the RAG system you want to train this document into.

Body

multipart/form-data
file
file
required

The .txt file to upload and train.

data_parser
string
default:txt_parser

Optional parser name for text files.

extra_info
string
default:{}

Optional JSON string with metadata for the file.

Response

TXT file successfully trained

message
string
Example:

"TXT parsing and training completed successfully"

rag_id
string
Example:

"6848ff3c4c291b4bef798e0c"

document_count
integer
Example:

1