September 15-18
The Cosmopolitan
Las Vegas

Beyond semantic models: "Domain context as code" for high-accuracy text-to-SQL

Thursday, September 172:45 PM PT

Text-to-SQL promises self-serve analytics, but accuracy remains a bottleneck. While dbt semantic models excellently encode business logic—metrics, dimensions, and relationships—many teams find that accuracy still plateaus when questions involve specific user actions on the frontend (e.g., "UUCVR after recommend modal"). The LLM lacks the context of the Web site itself.

This talk explores what lies beyond the Data Warehouse context. We will share our approach to building "Domain Context as Code" by structuring web access log measurement designs (YAML) and integrating QA automation scenarios. By combining dbt's rich metadata with this frontend ontology, we show how to turn vague natural language questions into highly accurate Semantic Layer queries, improving both Text-to-SQL performance and overall data quality.

Check out more sessions

View all sessions
dbt Summit on stage

Ready to join us?

Join data leaders and practitioners at dbt Summit for three days of ideas, skills, and shared progress.