Configuration Files
# How to Create a Configuration File
## Purpose
This document explains how to create and configure the rdeconfig.yaml configuration file that custom‑defines the structured‑processing behavior of RDEToolKit. You can learn everything from basic settings to advanced options step‑by‑step.
## Prerequisites
- Familiarity with the basic usage of RDEToolKit
- Basic knowledge of the YAML file format
- Understanding of the directory structure used for structuring processing
## Configuration‑File Requirements
| Item | Requirement |
|---|---|
| File name | rdeconfig.yml, rdeconfig.yaml or pyproject.toml can be used |
| Location | YAML format: inside the data/tasksupport/ directory pyproject.toml: at the project root |
| Format | YAML (or TOML) |
## Procedure
1. Place the configuration file
Put the file in the correct location:
1 2 3 | |
Magic Variables
Use magic variables when you need dataset names or metadata entries to include runtime information (for example ${filename}). See the Magic Variable Feature guide for advanced patterns and safeguards.
2. Create a basic configuration
A minimal configuration file looks like this:
1 2 3 4 5 | |
3. Set each configuration item
save_raw
Controls whether input data are copied to the raw directory.
- type:
bool - default:
false
1 2 3 | |
💡 Tip – Save Raw Data If you set
save_rawto true, make suresave_nonshared_rawis false. Enabling both will copy the data to bothrawandnonshared_rawdirectories.
save_nonshared_raw
Controls whether input data are copied to the save_nonshared_raw directory (a non‑shared location).
- type:
bool - default:
false
1 2 3 | |
💡 Tip – Save Raw Data If you set
save_nonshared_rawto true, make suresave_rawis false. Enabling both will copy the data to bothrawandnonshared_rawdirectories.
magic_variable
Enables dynamic filename substitution. When active, magic variables such as ${filename} can be used in an invoice, and the data tile name is automatically replaced with the actual file name.
- type:
bool - default:
false
1 2 3 | |
Example – Using a magic variable in an invoice:
Invoice before processing (20250101_sample_data.dat is the file being registered)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
After structuring processing
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
save_thumbnail_image
Controls automatic generation of thumbnail images from the main image (main_image directory).
- type:
bool - default:
false
1 2 3 | |
extended_mode
Specifies an extended data‑registration mode.
- type:
str|null - default:
null - Available options:
null→ Standard mode"rdeformat"→ RDE format mode"MultiDataTile"→ Multi‑data‑tile mode
1 2 3 4 | |
Processing Modes
Choose the extended_mode value that matches your workflow. The Data Registration Modes documentation describes prerequisites, inputs, and expected outputs for every mode.
4. Add mode‑specific settings
Ignore errors in MultiDataTile
Only effective when
extended_mode: "MultiDataTile"is set.
Continues processing even if an error occurs for a particular data tile (the faulty tile is simply not registered).
- type:
bool - default:
false
1 2 | |
SmartTable
Only effective when the SmartTable feature is enabled.
When enabled, table data files that are uploaded are saved as data tiles.
- type:
bool - default:
false
1 2 | |
5. Add logging / stack‑trace settings
Traceback
Controls an LLM/AI‑friendly stack‑trace feature.
- type:
bool - default:
false
1 2 | |
When enabled: true, the following additional options become available:
| Option | Description | Type | Default |
|---|---|---|---|
| format | Output format ("compact", "python", "duplex") |
str |
"duplex" |
| include_context | Show source‑code lines | bool |
true |
| include_locals | Show local variables (may expose sensitive data) | bool |
false |
| include_env | Show environment information | bool |
true |
| max_locals_size | Maximum size (bytes) for variable output | int |
512 |
| sensitive_patterns | Custom patterns that should be redacted | list[str] |
[] |
1 2 3 4 5 6 7 8 9 10 11 | |
Configuration Example Collection
Use the following examples as a starting point and adapt them to your needs.
Standard (Invoice‑Registration) Settings
1 2 3 4 | |
Register Raw Data to a Non‑Shared Directory
1 2 3 4 | |
Multi‑Data‑Tile Registration Mode
1 2 3 4 5 | |
System‑wide Integration (RDEFormat Mode)
1 2 | |
AI‑Agent Integration
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
Related Information
To learn more about configuration files, consult the following documents:
- Processing Modes – details on each
extended_mode - Magic Variable Feature – how dynamic substitution works
- Concept of Structuring Processing – how configuration influences the processing flow
- LLM/AI‑Friendly Traceback Settings – deep dive into stack‑trace customization