AI Skills AI技能 7h ago Updated 1h ago 更新于 1小时前 48

Modeling Is the Product 建模即产品

The "knowledge layer" in Data AI agents is often misidentified as merely the context layer (markdown, descriptions, glossary), when the modeling and metric layers underneath are what actually determine whether an agent works correctly Before AI agents, human analysts acted as both volume gates and quality filters; removing them exposes gaps in data modeling that were previously hidden The modeling layer (pre-joined, materialized tables) and metric layer (governed definitions) perform compute and 构建Data AI agent成功的关键在于底层"知识层"的构建质量,而非表面的提示词优化或交互层设计 知识层包含三个不同层次:建模层(物理表/预聚合)、指标层(业务定义)和上下文层(markdown描述),其中建模层是基础且不可跳过 自助式查询层消除了人工查询的速率限制,导致查询量激增、单次查询质量下降和运行间方差增加,使建模层的重要性更加凸显 没有建模层支撑,AI agent会在每次查询时自行猜测业务定义,产生看似合理但可能错误两个数量级的答案 建模层负责预先计算和统一定义,上下文层仅提供描述和路由提示,前者是后者的基础而非相反

65
Hot 热度
75
Quality 质量
68
Impact 影响力

Analysis 深度分析

TL;DR

  • The "knowledge layer" in Data AI agents is often misidentified as merely the context layer (markdown, descriptions, glossary), when the modeling and metric layers underneath are what actually determine whether an agent works correctly
  • Before AI agents, human analysts acted as both volume gates and quality filters; removing them exposes gaps in data modeling that were previously hidden
  • The modeling layer (pre-joined, materialized tables) and metric layer (governed definitions) perform compute and arithmetic once, rather than per-query, ensuring consistency, accuracy, and cost efficiency
  • An agent pointed at raw tables will guess business definitions (revenue, exclusions, filters) at query time, producing confidently formatted but potentially wildly incorrect answers
  • The agent is an interface that reveals the quality of underlying data modeling; the "unglamorous" modeling work is the actual moat, not the chat interface

Why It Matters

This article challenges the prevailing industry narrative that investing in prompt engineering and context-layer tooling is sufficient for successful Data AI agents. For practitioners building or buying talk-to-your-data solutions, it serves as a critical reminder that without a governed modeling and metric layer, agents will produce fast, confident, but fundamentally unreliable answers at scale.

Technical Details

  • Three distinct layers: The modeling layer (physical tables with pre-computed joins and materialized aggregates), the metric layer (governed business definitions like revenue, distinct counts, ratios, time windows), and the context layer (markdown, column descriptions, business glossary, routing hints)
  • Compute-once vs. compute-per-query: The modeling layer resolves grain, joins, and aggregates ahead of time so agents read small tables instead of scanning large raw ones; the metric layer encodes business logic (exclusions, rate changes, fraud filters) that would otherwise be guessed at query time
  • Variance problem: Without governed layers, the same question asked twice can take different query paths and return different numbers; with them, results are deterministic and identical across runs
  • Auto-population as bootstrap only: Generating context from query logs, column lineage, and existing docs is a reasonable starting point but should not replace building the underlying modeling and metric layers
  • Two routing paths: Metric questions (e.g., "revenue last month") route through the metric layer then the modeling layer; non-metric compositional questions (e.g., "which channels had the most declines on Thursday") bypass the metric layer and go directly to the modeling layer

Industry Insight

  • Organizations should resist the temptation to treat the context layer as a plug-and-play setup step; investing in governed modeling and metric layers is a prerequisite, not an optional enhancement, for any production Data AI agent
  • The agent itself is not a substitute for data infrastructure—it is a mirror that exposes whether your data was useful all along; companies with weak modeling layers will see their deficiencies amplified, not hidden
  • Data teams should focus on accelerating the velocity of model creation in the governance layer rather than offloading definition work onto agents; the competitive moat remains the unglamorous years of modeling work, not the chat interface

TL;DR

  • 构建Data AI agent成功的关键在于底层"知识层"的构建质量,而非表面的提示词优化或交互层设计
  • 知识层包含三个不同层次:建模层(物理表/预聚合)、指标层(业务定义)和上下文层(markdown描述),其中建模层是基础且不可跳过
  • 自助式查询层消除了人工查询的速率限制,导致查询量激增、单次查询质量下降和运行间方差增加,使建模层的重要性更加凸显
  • 没有建模层支撑,AI agent会在每次查询时自行猜测业务定义,产生看似合理但可能错误两个数量级的答案
  • 建模层负责预先计算和统一定义,上下文层仅提供描述和路由提示,前者是后者的基础而非相反

为什么值得看

这篇文章为AI从业者和数据团队揭示了Data AI agent成功的关键不在于表面的交互层,而在于底层数据建模的扎实程度。对于正在构建或采购talk-to-your-data agent的组织来说,这是一个重要的战略提醒:不要跳过建模工作,否则只会得到"glorified wrong answers"。

技术解析

  • 知识层分为三个层次:建模层(物理表、预聚合、预连接)、指标层(业务定义、统一计算逻辑)和上下文层(markdown描述、业务术语表、路由提示)。上下文层虽然易于实现且常被作为卖点,但不能替代底层建模工作。
  • 自助查询层消除了人工查询的速率限制,导致三个问题:查询量激增(prompt每分钟触发任意查询)、单次查询质量下降(无人检查连接逻辑)、运行间方差增加(相同问题可能产生不同结果)。
  • 建模层的核心价值在于"compute once":预先固定数据粒度、解析连接关系、物化聚合结果,使agent查询小表而非扫描大表,同时统一业务定义(如收入计算逻辑)避免每次查询时重新推导。
  • 指标层处理distinct counts、ratios、filters、time windows等易出错的计算逻辑,而上下文层仅负责描述和路由,不执行实际计算。

行业启示

  • 数据团队应优先投资建模层建设而非仅关注agent的交互层,建模质量直接决定agent输出的准确性和一致性,这是长期竞争优势所在。
  • 在评估或构建Data AI agent时,应将建模层成熟度作为核心评估指标,而非仅关注提示词工程或上下文层的完善程度。
  • 组织应认识到agent是接口而非数据价值的创造者,数据可用性最终暴露了底层数据建模的缺陷,加速了已有价值的实现而非创造新价值。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Agent Agent LLM 大模型 RAG 检索增强生成 Deployment 部署 Programming 编程