Skip to main content
AI transformations apply natural language instructions to transform data. Describe the transformation in plain English — Datris generates a Python script from your instruction and runs it in the container against all data.

Configuration

Add an aiTransformation block to the transformation section:

Examples

Date format conversion:
Phone number standardization:
Data enrichment / categorization:
Combined operations:

How it works

  1. Datris extracts column names and sample rows from the data, combines them with your instruction, and sends a single prompt to the AI model.
  2. The AI generates a self-contained Python 3 script (stdlib only) that reads the input file, applies the transformation, and writes the output.
  3. The script is executed locally via python3. Processing cost is zero after the initial API call.
  4. The transformed data replaces the original and continues through the pipeline to destinations.
AI transformations run after data quality checks and before data is written to destinations.

Works with all file types

  • CSV/delimited files — The script reads and writes CSV with the appropriate delimiter.
  • JSON files — The script parses JSON, transforms records, and writes JSON.
  • XML files — The script uses xml.etree.ElementTree to parse, transform, and write XML.

CLI

Requirements

  • ai.enabled: true must be set in application.yaml
  • The Vault secret for the AI provider must be configured (see AI Configuration)
  • python3 must be available on the pipeline server runtime