jcardena.com Blog Why every AI thing I do now rests on these years
145 posts
EN ES

Why every AI thing I do now rests on these years

AI

Production AI systems depend on more than the model. They require a foundation of deterministic data engineering—the patterns that ensure reliability and prevent costly failures.

The demo looked incredible. An AI agent, reasoning over a vast knowledge base, making smart, autonomous decisions. My first thought wasn't about the model. It was about the data pipeline. I wondered who built it, and if they were getting any sleep.

That's because every new, complex AI problem I encounter feels strangely familiar. The failure modes of these advanced systems—the hallucinations, the nonsensical actions—almost always trace back to a problem I’ve spent my career solving in a different context. It’s not a model problem. It’s a data problem.

Why every AI thing I do now rests on these years
Why every AI thing I do now rests on these years

The Eloquence of Bad Data

An LLM agent is a powerful reasoning engine, but it can only reason over the context it’s given. That context, whether from a vector database or a series of API calls, is its entire world. If that world is built on stale, incomplete, or contradictory data, the agent will make confident, eloquent, and profoundly wrong decisions.

This is the classic data warehousing principle with a dangerous new twist. A broken dashboard might show a zero where there should be a million. That's easy to spot. A broken agent, fed bad data, will invent a plausible-sounding narrative to explain the zero, thank you for your time, and then confidently execute a trade based on its flawed reasoning. The failure is masked by a layer of sophisticated prose.

Why every AI thing I do now rests on these years
Why every AI thing I do now rests on these years

In my experience, the most catastrophic data system failures were never the ones that threw loud errors. They were the silent ones, the slow corruption that poisoned datasets for weeks. The same threat exists today, but the blast radius is larger.

Raw Data IngestDeterministicPipelineTrustworthy DataAssetAgentic Reasoning
From Messy Data to Agent Insight

A Fortress of Determinism

How do you build reliable systems with a probabilistic component like an LLM at their core? You don't try to make the core deterministic. You can't. Instead, you build a fortress of determinism around it. You control everything leading up to the model and everything that happens after it makes a suggestion.

This is where the hard-won lessons of data engineering apply:

  • Ingestion and Validation: The unglamorous, critical first step. Pulling data from messy sources, enforcing schemas, and quarantining bad records. If this stage is weak, everything that follows is built on sand.
  • Transformation and Enrichment: Structuring raw data into a clean, useful format. This means creating clean text chunks, enriching entities, and establishing relationships the model can leverage.
  • Versioning and Lineage: This is non-negotiable. For any piece of data an agent uses, I need to trace its lineage back to the source. When an agent produces a weird result, my first question is, "What version of the knowledge base was it looking at?" Without this, debugging is guesswork.

Old Lessons for New Systems

The patterns that hold up in production AI are the same patterns that kept critical data warehouses running at 3 AM. The tool names have changed, but the principles are identical.

First, idempotency is everything. The ability to re-run a process and get the exact same result is the bedrock of reliable automation. An embedding pipeline that creates duplicate vectors on every run will slowly degrade your RAG system. We solved this for batch ETL jobs years ago; the same logic applies here.

Second, observability is a prerequisite. I used to need dashboards for data freshness and quality. Today, I need the same for my vector indexes. How many documents were processed? What's the latency on a lookup? We need to measure for relevance and drift, creating the same kind of data quality metrics we've always used.

Finally, the cost curve is unforgiving. An inefficient data pipeline used to burn cluster time. A chatty, poorly designed agent can burn through an entire budget in an afternoon of API calls. The discipline of designing for efficiency is more important than ever.

The Data Is The Moat, Not The Model

Access to powerful foundation models is becoming a commodity. Your ability to get GPT-4 or Claude 3 Opus via an API is not a competitive advantage. Everyone has that.

The durable advantage is a proprietary, clean, and comprehensive data asset that reflects your specific domain. This isn't a new idea. It's a direct echo of what researchers at Google called "The Unreasonable Effectiveness of Data" over a decade ago. Their point was that simple models on massive, clean datasets beat complex models on smaller ones. The principle holds: your unique data is your power.

There's a tempting belief that future, more powerful models will just "figure out" messy data on their own. In production, this has proven to be a fantasy. An agent can't reason its way out of data that is fundamentally wrong or missing. Banking on a future model to clean your house is a great way to go broke waiting.

SOURCESEvent StreamsDatabasesAPIsFile StorageDETERMINISTIC DATA PLANEIngestion &ValidationTransformationData VersioningEmbedding PipelineAGENTIC REASONING PLANEOrchestratorLLM CoreTool LibraryVector StoreSERVING & OBSERVABILITYAgentic APIsMonitoringData LineageCost Tracking
The Two-Plane AI Architecture

My Blueprint for Production AI

In practice, this means every AI project I architect is split into two distinct planes of work. This separation of concerns is the single most important decision we make.

1. The Deterministic Data Plane. This is where the vast majority of the engineering rigor goes. It’s built with classic software and data tools. It has CI/CD, automated tests, version control, and robust monitoring. Its sole job is to prepare a pristine, reliable view of the world for the agent.

2. The Agentic Reasoning Plane. This is where the LLM lives. It consumes the clean data from the deterministic plane. Its non-determinism is bounded because its inputs are controlled. Here we focus on prompt engineering and orchestration, knowing the underlying data is solid.

You embrace the probabilistic nature of the model, but you control its environment with absolute discipline. You don't hope the agent gets it right. You engineer the system so it's hard for it to get it wrong.

The most exciting frontiers in AI won't be conquered by downloading the next-biggest model. They'll be conquered by teams who respect the boring, foundational work of data engineering. The future rests on the lessons of the past.

JC
Juan Cardena
Enterprise Architect, Data & AI

Enterprise architect with 25 years across web, software, data, and AI. MIT CDAO ’25. Writing on agentic AI in production.