Skip to content

Data ingestion

Much of the work in an AI project is getting the data in: exports in different formats, documents with no structure, and credentials for every system an agent touches. turion converts your files into a training dataset, and gives your agents the keys to your systems as secrets.

Files into a training dataset

turion datasets convert uploads your files and runs the data-converter, an agent on your account. A model plans how each file becomes training records; the agent applies the plan to every row, checks each record against the dataset rules and drops duplicates. Rows already in a turion format go in unchanged.

The converter's model calls come from Turion's model garden, so there is no provider key to set, and the agent is yours to edit.

What it reads

File types the data-converter reads
FilesRead as
CSV, TSV and Excelrows, each Excel sheet on its own; the first row is the header
JSON, JSONL and Parquetrows
Email exports (.eml, .mbox)one row per message: from, to, subject, date and body
PDF, Word, text, Markdown and HTMLdocuments, text only
Zip and tar archivesunpacked and read file by file, up to three levels deep

Images aren't read, and a scanned PDF needs OCR first. A conversion takes up to 100 MiB of files and writes up to 500 examples from documents by default.

What reaches the model

A profile of each file, never the file itself: its name, its columns and five sample rows, or the first 2,000 characters of a document. The model answers with a plan or with examples, never with code, and every record is checked before it goes into the dataset.

terminalzsh
$ turion datasets convert ./raw --format chat \
    --instructions "support replies, newest first" --name support
# uploaded 3 files (4 MB)
tickets.xlsx#Tickets  map         1,180 records
handbook.pdf          synthesize  34 examples
logo.png              skip        unsupported file type .png
chat, 1,197 examples; dropped 17 duplicates
ds_0123456789abcdef

Agents that read your systems

An agent is Python code with tools, so it can call anything with an API: your help desk, issue tracker, mailbox, database or your own services. Its keys are set as secrets and reach its container as environment variables. They are encrypted at rest and never shown again, and .env files are never uploaded with the code.

A run starts when something calls the agent's runs endpoint: your app, a cron job, a queue, or a webhook such as Zapier's. Every model call goes through the turion gateway as a trace, which is the data a model of your own can later be trained on.

Agent hosting

How an agent connects

An agent built from the CLI’s template reaches a system through an MCP server you name in its turion.toml, or reads your Turion Brain. An agent you write in Python calls the system’s API from its own tools. Either way the key is a secret you set once per agent.

terminalzsh
$ turion agent secrets set support-triage \
    ZENDESK_SUBDOMAIN=acme ZENDESK_EMAIL=ops@acme.com ZENDESK_API_TOKEN
ZENDESK_API_TOKEN: ********
# set ZENDESK_SUBDOMAIN, ZENDESK_EMAIL, ZENDESK_API_TOKEN on support-triage

$ turion agent secrets list support-triage

Convert your first dataset

Install the CLI, sign in and point turion datasets convert at a folder of exports. Our engineers can do the data work with you as part of managed training.