Zero Labs
Industry News / AI

Modeling Is the Product

Source · Towards AI By Mohamed Ashraf

From the publisher’s feed, collected in the ZeroLabs newsroom.

Why the least glamorous layer in your stack decides whether your Data AI agent works.Everyone building a talk-to-your-data agent is working on the same visible problems prompt quality, routing, tool calls, how the answer gets delivered. Meanwhile the thing that actually decides whether it works was built years before anyone said the word agent.I’ve spent quite sometime this year building and owning one of these agents, and a good part of it talking to people building or buying the same thing. The same product works beautifully at one organization and falls apart at the next and it has almost nothing to do with the product. It has to do with how the “knowledge layer” is build.Three things get called “the knowledge layer”They aren’t the same thing, and the difference is the whole argument.The modeling layer. Physical tables. Materialized, pre-aggregated, joined ahead of time. This is where compute gets spent once instead of every time.The metric layer. The definitions sitting on those tables, so that revenue means one thing across the organization and returns the same number on Tuesday that it did on Monday.The context layer. The markdown. Column descriptions, business glossary, routing hints the text that helps an agent pick the right model and read it correctly.The pitch is almost always the third one. Markdown-first, owned entirely by the business team, or auto-populated from your warehouse.To be fair, auto-population is a reasonable bootstrap. Generating descriptions from query logs, column lineage, and existing docs beats staring at an empty file, and it gets a team to a working demo in an afternoon.But the framing does something else too. It positions the context layer as an account setup step a thing that improves answers, with no technical barrier attached. And in doing that, it quietly implies the two layers underneath are optional.They aren’t. These agents use a good self-serve layer extremely well. They don’t replace the modeling underneath it.Modeling used to be optional in a way it no longer isBefore AI, the person writing the query was the rate limiter. Asking cost you time, so you asked less. That constraint was doing more work than anyone gave it credit for including covering for the gaps in your own modeling. When the self-serve layer was missing something, An analyst occasionally dropped to raw and wrote it by hand. Rare enough that nobody counted it. An agent hits that same gap every single time it’s asked.The human wasn’t only the volume gate. The human was also the quality filter. Remove them and three things move at once:Volume goes up. A prompt fires an arbitrary query in a minute, and there’s no natural reason to stop.Per-query quality goes down. Nobody is checking the join before it runs.Run-to-run variance goes up. The same question, asked twice, takes two different paths to two different numbers.So modeling matters more now than it did before, not less. The barrier to asking dissolved overnight and expectations went up with it. Point an agent at raw tables and you haven’t just skipped a nice-to-have you’ve removed the throttle from an unoptimized query pattern.At scale that’s a performance problem and a cost problem, arriving together. Modeling won’t fix your cost problem on its own but without it you don’t even have a floor.What the modeling layer is actually doing for youLeft: what gets sold. Right: what holds up.Two things sit between an agent and your raw tables, and the pitch usually includes neither.The modeling layer does the compute once. Grain is fixed, joins are resolved, aggregates are materialized. A question against it reads a small table instead of scanning a large one.The metric layer does the arithmetic once. Distinct counts, ratios, filters, time windows — the parts that are easy to get subtly wrong — are decided here rather than re-derived per query.The context layer does neither. It’s descriptions and routing hints. That’s genuinely useful, and it’s the layer these products ship well.Note that the metric layer is narrower than the modeling layer, because not every question is a metric question. Revenue last month routes through it. Which channels had the most declines on Thursday doesn’t there’s no shared definition to honor, so the agent goes straight to the models and composes. Both routes end at the modeling layer, which is why that’s the one you can’t skip.The same question, two waysAsk for revenue by month. Against raw tables, the agent makes every judgment call itself.Every judgment call made at query time. Revenue, as derived.Count the decisions in there. Is revenue the transaction amount, or the commission on it? Do failed transactions count? Reversals? Is fraud excluded, and excluded how? Which processor’s rate applies if the rate changed mid-month?Every one of those is a business definition, and the agent guessed at all of them. It might guess the same way tomorrow. It might not.Against a governed layer, the same question is this.Everything that made this short happened months earlier.Revenue, as defined.Nothing was decided at query time. The joins, the exclusions, and the rate logic were settled once by someone who knew the answer, and they’re identical on every run. It scans a small table instead of a large one, so it’s cheaper too.And it’s worth being concrete about what wrong looks like. In a payments business, an agent that returns gross transaction value when someone asked for revenue is off by two orders of magnitude and still returns a clean, plausible, confidently formatted number.That second query is the whole job. Everything that makes it short the grain, the joins, the exclusions, the rate logic is modeling work that happened long before the question was asked.Modeling first, markdown secondThe context layer is a modeling layer first and markdown second. Models carry the definition. Markdown clarifies it. Not the other way around.Making it faster to add models to that layer absolutely should be the data team’s focus ,but that’s a separate problem to solve, not one to offload onto the agent by just availing raw data.Think of the agent as what it actually is: a very good analyst who is always available, never tired, and will run anything you ask. That’s genuinely valuable. But you never expected an analyst to invent the definition of revenue on the spot, and you never let one loose on raw tables with no models and no brief. The agent doesn’t earn a different standard just because it’s fast. You hired a super analyst. You didn’t hire a modeling layer.Adoption works when you increase the velocity of something that already exists. The agent isn’t the thing that makes your data useful. It’s the thing that finally makes it obvious whether your data was useful all along. Without a modeling layer underneath, there’s nothing to accelerate you get glorified wrong answers, a glorified warehouse bill or even both.Which is why I’d go further. The agent is an interface. It took weeks. The thing it’s an interface to the grain decisions, the resolved joins, the settled definitions took years, and it’s the only part that determines whether any of this works. When you ship a talk-to-your-data agent, the modeling is what you shipped. The chat window is packaging ,though a really important one.The unglamorous work was the moat the entire time. It just took an agent to show it.Modeling Is the Product was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.