Data loading
Document Loader, Document Cleaner, S3 Loader, Image Loader and OCR.
Data nodes turn files into Document values with stable IDs (<artifact>:p<page>#c<chunk>), source metadata and exact offsets. Upload files in the project panel; the IR references them by ID only.
| Node | Category | Summary |
|---|---|---|
| Document Cleaner | Data | Normalises and cleans document text before chunking. |
| Document Loader | Data | Loads and parses uploaded files (PDF, Word, Excel, PowerPoint, EPUB, Markdown, HTML, CSV/TSV, JSON/JSONL, XML, YAML, text, and images or scanned PDFs via OCR) into documents. |
| Image Loader | Data | Loads uploaded images for vision models (LLM image inputs) or OCR. |
| OCR | Data | Reads text from images and scanned PDFs with open-source OCR (RapidOCR, runs locally). |
| S3 Loader | Data | Loads and parses files from Amazon S3 or S3-compatible storage (MinIO, Cloudflare R2, Wasabi…) into documents, like the Document Loader (PDF, Office, Markdown, CSV, images via OCR…). |
Document Cleaner
agenticmind.data.document_cleaner · version 1.0.0
Normalises and cleans document text before chunking.
Typical use. Normalises text before chunking: Unicode NFKC, control characters, words hyphenated across lines, whitespace runs, empty documents.
| Input | Type | Required | Description |
|---|---|---|---|
documents |
DocumentSet | yes |
| Output | Type | Description |
|---|---|---|
documents |
DocumentSet |
- Control branches:
done - Permissions: none
- Execution policy: timeout 30s, max attempts 1, idempotent
| Setting | Type | Default | Description |
|---|---|---|---|
normalize_unicode |
boolean | true |
NFKC-normalise (ligatures, full-width chars…). |
remove_control_chars |
boolean | true |
Remove Control Chars |
dehyphenate |
boolean | true |
Join words split across lines (‘exam-\nple’ → ‘example’). |
collapse_whitespace |
boolean | true |
Collapse runs of spaces; keep paragraph breaks. |
drop_empty |
boolean | true |
Remove documents that are empty after cleaning. |
min_chars |
integer | 0 |
Drop documents shorter than this. |
Document Loader
agenticmind.data.document_loader · version 1.0.0
Loads and parses uploaded files (PDF, Word, Excel, PowerPoint, EPUB, Markdown, HTML, CSV/TSV, JSON/JSONL, XML, YAML, text, and images or scanned PDFs via OCR) into documents.
Typical use. Parses uploaded files into documents: PDF (one document per page for page citations), Word, Excel, PowerPoint, EPUB, Markdown, HTML, CSV/TSV, JSON/JSONL, XML, YAML, text, plus images and scanned PDFs through OCR. Turn on pdf_layout to turn larger-font lines into headings.
| Input | Type | Required | Description |
|---|---|---|---|
files |
JSON | no | Extra file IDs (list of strings), e.g. from a run input |
| Output | Type | Description |
|---|---|---|
documents |
DocumentSet |
- Control branches:
done - Permissions:
artifacts - Execution policy: timeout 300s, max attempts 1, idempotent
| Setting | Type | Default | Description |
|---|---|---|---|
files |
array | Project files to load. Upload files in the project panel or here. | |
split_pdf_pages |
boolean | true |
One document per PDF page (enables page citations). |
pdf_layout |
boolean | false |
Layout-aware PDF parsing: turn larger-font lines into headings (pair with the Chunker’s layout or markdown strategy). |
csv_mode |
file · rows |
file |
‘rows’ makes one document per CSV row. |
skip_empty |
boolean | true |
Drop parts with no text (e.g. blank pages). |
ocr |
auto · off |
auto |
auto: read text from images and from scanned PDF pages (pages without a text layer) with open-source OCR. off: never run OCR. |
ocr_min_confidence |
number | 0.5 |
Drop OCR lines below this confidence. |
Image Loader
agenticmind.data.image_loader · version 1.0.0
Loads uploaded images for vision models (LLM image inputs) or OCR.
Typical use. Loads uploaded images for vision models (image is the first, images the list) or for OCR.
| Input | Type | Required | Description |
|---|---|---|---|
files |
JSON | no | Extra image file IDs (list) |
| Output | Type | Description |
|---|---|---|
image |
Image | The first image |
images |
JSON | All images (list of image references) |
- Control branches:
done - Permissions:
artifacts - Execution policy: timeout 30s, max attempts 1, idempotent
| Setting | Type | Default | Description |
|---|---|---|---|
files |
array | Images to load (PNG, JPEG, WebP, GIF; BMP/TIFF for OCR). Upload them in the project panel. |
OCR
agenticmind.data.ocr · version 1.0.0
Reads text from images and scanned PDFs with open-source OCR (RapidOCR, runs locally).
Typical use. Reads text from images and scanned PDFs with RapidOCR, locally on the CPU. Lines below min_confidence are dropped.
| Input | Type | Required | Description |
|---|---|---|---|
image |
Image | no | |
images |
JSON | no | List of image references |
| Output | Type | Description |
|---|---|---|
text |
String | All recognised text |
documents |
DocumentSet | One document per image or page |
- Control branches:
done - Permissions:
artifacts - Execution policy: timeout 600s, max attempts 1, idempotent
| Setting | Type | Default | Description |
|---|---|---|---|
files |
array | Images or scanned PDFs to read (in addition to the image inputs). | |
min_confidence |
number | 0.5 |
Drop lines the engine is less sure of. |
S3 Loader
agenticmind.data.s3_loader · version 1.0.0
Loads and parses files from Amazon S3 or S3-compatible storage (MinIO, Cloudflare R2, Wasabi…) into documents, like the Document Loader (PDF, Office, Markdown, CSV, images via OCR…).
Typical use. Loads files from Amazon S3 or S3-compatible storage (MinIO, Cloudflare R2, Wasabi) and parses them like the Document Loader. Authenticate with key secrets, the server’s own AWS identity, or anonymously for public buckets.
| Input | Type | Required | Description |
|---|---|---|---|
keys |
JSON | no | Extra object keys (list) |
| Output | Type | Description |
|---|---|---|
documents |
DocumentSet | |
objects |
JSON | Objects loaded: key, size, etag, last_modified |
- Control branches:
done - Permissions:
network,credentials - Execution policy: timeout 900s, max attempts 2, idempotent
| Setting | Type | Default | Description |
|---|---|---|---|
bucket |
string | Bucket name (no s3:// prefix). | |
prefix |
string | Only objects under this folder/prefix, e.g. reports/2026/. | |
keys |
array | Exact object keys to load (instead of listing the prefix). | |
include |
array | File patterns to load when listing, e.g. *.pdf, *.md (empty = every supported file). | |
max_files |
integer | 50 |
Stop after this many objects. |
max_file_mb |
integer | 50 |
Max File Mb |
auth |
keys · environment · anonymous |
keys |
keys: access key secrets. environment: the API server’s own AWS identity (env vars, ~/.aws, instance or task role). anonymous: a public bucket. |
access_key_id |
secret ref | Access key ID secret, e.g. AWS_ACCESS_KEY_ID | |
secret_access_key |
secret ref | Secret access key secret, e.g. AWS_SECRET_ACCESS_KEY | |
session_token |
secret ref | Session token secret (temporary credentials) | |
region |
string | e.g. us-east-1 (R2: auto). | |
endpoint_url |
string | S3-compatible storage: MinIO http://localhost:9000, Cloudflare R2 https://<account>.r2.cloudflarestorage.com, Wasabi https://s3.wasabisys.com … (empty = AWS). | |
split_pdf_pages |
boolean | true |
One document per PDF page (enables page citations). |
pdf_layout |
boolean | false |
Layout-aware PDF parsing: turn larger-font lines into headings (pair with the Chunker’s layout or markdown strategy). |
csv_mode |
file · rows |
file |
Csv Mode |
skip_empty |
boolean | true |
Skip Empty |
ocr |
auto · off |
auto |
auto: read images and scanned PDFs with open-source OCR. |
ocr_min_confidence |
number | 0.5 |
Ocr Min Confidence |

