Train KB from Text File
lyzr_kb_train_txt_fileTrain a plain-text file into a knowledge base by uploading its contents, enabling retrieval-augmented generation.
Instructions
Upload and train a plain-text (.txt) file into a knowledge base.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rag_id | Yes | The ID of the RAG system to train | |
| filename | Yes | Name of the file being uploaded | |
| mime_type | No | MIME type of the file (optional) | |
| chunk_size | No | Chunk size for splitting the document (default 1000) | |
| extra_info | No | Extra metadata JSON string (default "{}") | |
| data_parser | No | Parser strategy name (default 'simple') | |
| chunk_overlap | No | Chunk overlap for splitting the document (default 100) | |
| file_content_base64 | Yes | Base64-encoded contents of the file to train |