How-to

Fivetran 分享:用 AGENTS.md 给 AI 智能体一张数据库地图

Why we picked it

Fivetran 的 Fraser George 教你一招:把表和字段的业务含义写进 AGENTS.md,智能体生成 SQL 前先读这份地图。不用换工具,现有的数据栈就能用。做数据分析智能体的人可以直接照做,能少踩很多口径不一致的坑。

Fivetran 的 Fraser George 在视频中演示如何让智能体正确查询数据库。核心做法是把数据团队的上下文写成 AGENTS.md 这类文档,告诉智能体每个表和字段的业务含义。这样智能体写出的 SQL 不只是语法正确,还能匹配团队对数据的实际定义。

Body

方法复用企业已有的数据栈,不需要额外采购新工具。具体是把表结构、字段口径、命名约定等元信息整理进 AGENTS.md,让智能体在生成查询前先读取这份“数据库地图”。这解决了常见痛点:智能体能写 SQL,但不知道你们团队里“活跃用户”这类字段到底怎么算。

对数据团队和构建分析类智能体的开发者来说,这是一种低成本的落地技巧。与直接依赖 Text-to-SQL 基准成绩的方案相比,它强调把组织内部的语义约定显式写进上下文,减少查询出错率。

Original · AI Engineer

Your agent can write SQL. It can't read your data team's mind. @frasergeorgew of @fivetran on giving agents a map of the database, using the data stack you already have. AGENTS.md, meet tables. youtu.be/sMkeP2FQWbc📊 35 ⚡

Industry Coordinates & Source Verification

This report is categorized under AITOP's "How-to" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Fivetran, AGENTS.md, agents, SQL.

Source attribution: curated from AI Engineer (@aiDotEngineer).

Spotted an error in the summary or translation? Tell us