7 min readfrom VentureBeat

AI agents aren't confidently wrong because of bad context — they're wrong because of bad data engineering

Our take

AI applications are increasingly delivering confidently incorrect answers, not due to model flaws, but a critical gap in data engineering. These failures occur when outdated or incomplete data is retrieved and presented as authoritative, bypassing standard data pipeline checks. Addressing this requires a shift in focus—from pipeline completion to data correctness, freshness, consistency, and lineage. Prioritizing these four dimensions of data observability is the key to building truly trustworthy AI systems.
AI agents aren't confidently wrong because of bad context — they're wrong because of bad data engineering

The recent surge in enterprise AI adoption has brought with it a predictable wave of challenges, and the article’s focus on the often-overlooked issue of data engineering is a vital corrective. We've seen countless organizations pour resources into model selection and prompt engineering, chasing incremental gains in accuracy while overlooking the foundational layer upon which these systems depend. The scenario described – a confidently wrong AI system months after initial deployment – is increasingly common, and it highlights a fundamental misalignment in how we approach AI infrastructure. It’s a problem that echoes issues we’ve seen previously; as outlined in Loop Engineering for RAG Generation: iterate top-k one at a time, the nuances of retrieval and generation, while important, are ultimately secondary to the core integrity of the data being processed. The article rightly points out that the issue isn't inherent to the AI model itself, but rather a systemic failure to validate and maintain the data feeding it.

This isn’t a new problem, as the fintech example demonstrates. It’s a data quality issue dressed up in the language of AI. The tendency to immediately attribute failure to the model or the retrieval layer is a natural, but ultimately misguided, response. It’s a classic case of focusing on the symptoms rather than the root cause. The author’s emphasis on data observability—tracking correctness, freshness, consistency, and lineage—is a crucial shift in perspective. It parallels the proactive approach to security discussed in [One encoder, seven heads: what we learned training a unified security classifier with masked losses [P]](https://www.promptlayer.com/post/one-encoder-seven-heads-what-we-learned-training-a-unified-s-cmrwqznd306pbdjxxsr7s9ff3), where a unified model necessitates robust data validation to ensure reliable classification across diverse input streams. Building systems that can automatically detect and flag stale, inconsistent, or incomplete data—before it’s even fed to the AI—is no longer a nice-to-have; it's a prerequisite for reliable AI operation. The shift from pipeline monitoring (did the job complete?) to data monitoring (is the data *correct*?) is a paradigm shift that demands a different skillset and a different set of tools.

The parallels to building robust software systems are striking. As Jake Mannix articulated in Presentation: From Copy-Paste to Composition: Building Agents Like Real Software, moving beyond ad-hoc, reactive approaches to AI requires a more disciplined, compositional architecture—one that prioritizes data quality and observability as foundational components. The Uber and Netflix examples cited demonstrate that these capabilities can be built, and scaled, within existing data infrastructure. The key is to move beyond a mindset of simply moving data from point A to point B and instead adopt a culture of continuous validation and auditing. This requires investment in tools like Great Expectations and Soda, and a commitment to establishing clear SLAs for data freshness and consistency.

Ultimately, the article serves as a powerful reminder that AI is not a magic bullet. It’s a powerful *amplifier*—amplifying both the capabilities and the weaknesses of the underlying data. As AI continues to permeate enterprise workflows, the importance of robust data engineering practices will only increase. The question moving forward isn’t just how to build better AI models, but how to build systems that ensure the data those models rely on remains trustworthy, accurate, and up-to-date – a challenge that demands a renewed focus on the foundational principles of data management.

You spend weeks tuning an AI chatbot. Answers are accurate. Stakeholders sign off, and you ship it. Three months later, the system is confidently wrong about a third of what users ask. Nobody changed the model, and nobody touched the prompts. The world moved, pricing changed, a policy updated, a product spec shipped a new version, and the underlying knowledge store didn't move with it.

This is not a hypothetical. It's one of the most common production failure modes in enterprise AI right now, and most data engineering teams don't have the right tooling to catch it, regardless of how the AI system retrieves the data.

The failure that doesn't look like a failure 

An AI application doesn't care whether it's retrieving from a vector store, a document index, or an API call. Whatever the mechanism, nothing in a standard retrieval pipeline checks whether what it's serving is still correct. A stale pricing document retrieves just as confidently as a current one, because the system is scoring relevance or availability, not correctness. A record with a silently missing field passes through just as cleanly as a complete one, for the same reason.

So the failure is invisible by design. Outdated or incomplete data still scores high on relevance, or passes every check a data pipeline was built to run. The model answers with full confidence because the retrieved context looks authoritative. Every dashboard you're watching stays green. The system looks like it's working. It's just wrong.

I’ve watched a similar version of this happen outside the AI context, in a fintech pipeline. An upstream system changed a field without notifying downstream users. The pipeline did not fail; it simply propagated bad values into dashboards because the system only checked whether the job completed, not whether the data was still correct. The issue surfaced only when a customer noticed something inconsistent. By then, the bad data had already moved downstream. 

Whether it's a document that's gone stale or a field that's gone silently missing, the failure shape is the same: the absence of an error is not the presence of correctness, and without building proper validation layers, nothing in the pipeline could identify the problem.

Why this is a data engineering problem

Teams that hit this failure tend to misdiagnose it, and they tend to do it twice.

Blaming the model: The first instinct is to blame the model, try a different LLM, adjust the prompt. The real problem lies further upstream, at the data engineering layer, the same instinct behind the fintech failure above: monitoring built for the pipeline, not the data.

Blaming the retrieval layer: Once the model's ruled out, the next instinct is to blame the retrieval or context layer instead and buy a better one. The timing isn't a coincidence: as enterprises push these systems into the real production world, this gap is exactly what's starting to surface, and the vendor response has been everywhere. 

  • AWS just entered the "context layer" race with a knowledge graph that learns from agent usage. 

  • Snowflake's new Horizon Context and Cortex Sense target the exact symptom this piece opened with: agents giving confident wrong answers because nothing governs the business logic underneath them. 

Both are real responses to a real problem, but they sit one layer above it; a knowledge graph still depends on whatever feeds it.

The real problem lies further upstream, at the data engineering layer. Teams check whether a job ran, not whether the data it moved is still true, an instinct that predates AI by years. Monitoring is built for the pipeline, not for the data. 

What's actually missing: Data observability

Data observability is a well-known concept that doesn't get enough attention in how it's actually implemented. The relevant metric isn't a percentage — it's coverage: what fraction of critical datasets have lineage that's actually queryable, versus only living in someone's head.

Uber built a dedicated data quality and observability platform long before retrieval-augmented generation existed. Their Unified Data Quality platform supports more than 2,000 critical datasets and detects around 90% of data quality incidents before they reach downstream consumers.

Netflix solved a different piece of the same problem, building a company-wide data lineage system so anyone could answer where a dataset came from and what touched it along the way. It maps dependencies across Kafka topics, ML models, and experimentation, not just warehouse tables. Similar to Uber, the platform was built for humans and now it has become more important with the rise in AI/LLM applications.

Between them, Uber and Netflix cover two of the four things worth building for. In practice, I think about it as four dimensions, each measurable on its own terms.

Correctness: Does each record conform to the shape and rules it's supposed to, right field types, no unexpected nulls, values in range. Tools like Great Expectations and Soda handle this well: automated row and column-level validation instead of manual checks after something breaks. Track percentage of records passing validation per run.

Freshness: Is the data still current relative to its source, not just current as of its last check. Track time since last successful update per source, with an SLA per dataset rather than one blanket threshold, since some sources need hourly refresh and others don't.

Consistency: Does the same fact read the same way everywhere it's stored or indexed. This fails silently, it only shows up when two systems fed by the same source start disagreeing. A periodic cross-check between downstream destinations, flagging mismatch rate above a threshold, is enough to catch it early.

Lineage: Can you trace any output back to its source and every transform it passed through, the same question Netflix built its system to answer. 

None of this requires infrastructure most data teams don't already have. I know because I've built it, not just argued for it.

At Socure, client data arrived in whatever shape the client felt like sending it, and occasionally, quietly wrong. The challenge was building a system where incorrect data could be identified before it propagated downstream. The same principles applied: Validate what arrived, understand where it came from, and prevent bad data from becoming someone else's problem.

Great Expectations became part of that foundation: schema and range validation at ingestion, per-source SLAs for freshness, cross-system checks for consistency, and file-level lineage. All of it sat behind a write-audit-publish pattern, where data landed in staging, was validated, and only moved downstream if it passed the required checks.

The result showed up downstream: better accuracy across the board, in reporting, in the ML models, and in AI retrieval built on top of that same data.

What to do Monday morning

If you're running retrieval-based AI systems in production, the diagnostic question isn't which model to try next or which retrieval architecture to migrate to. It's four narrower questions: 

  • Is the underlying data validated against the standards required by its consumers?

  • What's the oldest piece of content currently being served with high confidence?

  • Would two chunks of the same source ever disagree with each other in the same retrieval result?

  • Could you trace where it came from if it turned out to be wrong?

If you can't answer those questions, then the gap lies in the pipeline between your source systems and whatever your agent reads from. That’s a data engineering fix, not a model swap or a vendor migration.

Whether you're building reporting pipelines, ML systems, or AI agents, correctness, freshness, consistency, and lineage are what make data trustworthy. AI simply exposes weaknesses that have existed in data engineering all along. 

Read on the original site

Open the publisher's page for the full experience

View original article