Data platform for AI
Models are only as good as the data plumbing: a lakehouse with ACID tables, orchestrated pipelines, contracts, quality tests and lineage gives AI reproducible training data, fresh RAG sources and auditable evals.
Analogy: A city's water system: treatment plants (pipelines), quality tests at each stage, pipe maps (lineage) and supply agreements (contracts). Nobody admires it until the tap runs brown.
How it works
- A lakehouse keeps Parquet on cheap object storage; Delta Lake, Iceberg or Hudi add ACID transactions and time travel.
- Pipelines ingest via batch ELT, CDC or Kafka, transform in SQL with dbt, and orchestrate with Airflow or Dagster.
- Data contracts make an upstream schema rename break the producer's CI build, not your model.
- Quality tests on nulls, uniqueness, freshness and ranges gate every step, before bad data reaches an index.
- Lineage finds every index and model that consumed a bad batch, so you rebuild only those.
Check yourself
Answer to mark it learned; your answers aren't scored.
Your RAG assistant starts citing a discontinued pricing page. Root cause: the CMS team renamed is_archived to status, and ingestion read the missing field as 'live', re-embedding 1,200 archived pages. Which control would have stopped this before the change shipped?
Go deeper
Full explanation
A data platform is the shared plumbing that moves data from sources to every consumer (dashboards, training jobs, RAG indexes) reliably and under governance.
- Lakehouse: Parquet files on cheap object storage (S3, GCS, ADLS) managed by an open table format (Delta Lake, Apache Iceberg or Hudi) that adds ACID transactions, schema evolution and time travel. One copy serves both SQL and ML.
- Pipelines: ingest with batch ELT, CDC or streaming (Kafka); transform in SQL with dbt; orchestrate with Airflow or Dagster.
- Data contracts: producers commit to a schema and its meaning, enforced in their CI, so an upstream rename breaks their build, not your model.
- Quality tests: nulls, uniqueness, freshness and ranges (dbt tests, Great Expectations) gate every step.
- Catalog and lineage: Unity Catalog, DataHub, OpenLineage answer who owns this, where it came from and who may read it.
Why AI depends on it: RAG ingestion needs fresh, permission-tagged documents; training needs versioned snapshots; evals need stable golden sets; governance needs lineage from source to prediction.
Code Pin a training snapshot and gate it on quality
-- 1) Training reads a pinned table version, never "whatever is there now".
-- Materialize it: Delta time travel ends when VACUUM removes old files.
CREATE OR REPLACE TABLE ml.churn_train_2026_11 AS
SELECT * FROM gold.customer_features VERSION AS OF 412;
-- 2) Quality gate before training or indexing (fail the job on breach)
SELECT
COUNT(*) AS row_count,
AVG(CASE WHEN tenure_days IS NULL THEN 1 ELSE 0 END) AS null_rate_tenure,
COUNT(*) - COUNT(DISTINCT customer_id) AS duplicate_ids,
MAX(updated_at) AS freshest_row
FROM ml.churn_train_2026_11;
-- orchestrator asserts: null_rate_tenure < 0.01, duplicate_ids = 0,
-- freshest_row within 24 h; then logs table + version 412 to the runReal example
A RAG assistant starts citing a discontinued pricing page. Root cause: the CMS team renamed is_archived to status, the ingestion job read the missing field as 'live', and 1,200 archived pages were re-embedded. A data contract would have failed the CMS team's CI on the rename; a null-rate test would have stopped ingestion before indexing; lineage finds every index and model that consumed the bad batch in minutes, so only those are rebuilt from the last good table version.
Trade-offs +4 · −3
+ You gain
- One governed copy of data for BI, training, RAG and evals: no shadow exports.
- Time travel and snapshots make training data and evals reproducible.
- Contracts and tests move breakage left, into the producer's CI.
- Lineage answers audit and GDPR deletion requests across models and indexes.
− You pay
- A large investment: it needs a platform team and organizational buy-in to own contracts.
- Open table formats need upkeep: compaction, vacuum, small-file tuning.
- Unstructured data for AI (PDFs, audio, images) fits less naturally than tables.
Use it when
Once several teams or models share data, when training must be reproducible or auditable, or when RAG indexes must track changing, permissioned sources.
Avoid it when
One small app with one database, or a prototype RAG over a few hundred documents: a script and a bucket are fine until consumers multiply.
Numbers to know 3
- Delta Lake defaults:
VACUUMkeeps 7 days of old files, the transaction log 30 days; older time travel needs an explicit snapshot. - Target file sizes: Iceberg defaults to 512 MB, open-source Delta
OPTIMIZEto 1 GB (Databricks autotunes by table size); thousands of tiny files wreck scan speed. - Origins worth knowing: Delta Lake came from Databricks, Iceberg from Netflix, Hudi from Uber.
Common pitfalls 4
- Training on a mutable table without pinning a version: the model can't be reproduced.
- RAG ingestion that ignores deletes and ACL changes: removed or restricted documents stay retrievable.
- Quality tests only at the end of the pipeline, after bad data has already fanned out.
- Lineage that stops at the warehouse instead of reaching features, vector indexes and models.
Interview questions 2
Answer out loud first, then reveal.
Why should an AI architect care about the data platform?Show answer
Because most AI failures I've seen were data failures with a model-shaped symptom. Training needs versioned, reproducible snapshots; RAG needs fresh documents with permissions and deletions propagated; evals need golden sets that don't silently change; and governance, from GDPR deletion to EU AI Act documentation, needs lineage from source to prediction. So I push for an open table format on object storage, contracts on critical sources, quality gates before training or indexing, and lineage that reaches models and vector indexes.
A user exercises their right to erasure. How do you handle it across AI systems?Show answer
Lineage makes it tractable: the catalog lists every table, feature, vector index and training set derived from that user's records. I delete from source and lakehouse tables, remembering time travel keeps old files until vacuum runs, then remove the user's chunks from vector indexes by ID or metadata filter. For models already trained on the data, I agree a policy with legal, typically excluding the user from the next scheduled retrain rather than retraining immediately, and I document it.