Beyond standard metrics: extending dbt semantic models for high-accuracy Text-to-SQL
Text-to-SQL still requires manual query review, which blocks true automation. The root cause is context: raw data schemas overwhelm LLMs, while basic prompts lack the detail they need to reason accurately.
dbt Semantic Models offer a strong foundation. But a technical gap exists: their standard API is built for BI tools, outputting data in formats that LLMs can't easily process.
At WHOOP, we custom-extended the dbt API into an AI-friendly API that translates semantic definitions into a natively LLM-consumable format, and integrated business metadata, including cardinality and domain rules, directly into the extension, giving AI precise context without fragile prompt engineering. Automated synchronization keeps the extended semantic layer in sync with our dbt models.
This session covers the architecture behind our AI-friendly API and how it dramatically improved Text-to-SQL accuracy and workflow efficiency.
Check out more sessions
From AI experiment to production: how Okta governs context for agents at scale
Pooja Crahen / OktaView session- Breakout session
Governed by default: how data teams at Nordstrom turning dbt governance into an AI advantage
Priya Tanwar / NordstromNadine Bruxel / NordstromView session - Breakout session
From backend PR to dbt model: The merge request with no human in the loop
Abdullah Zia / Pet Media GroupView session
