Beyond semantic models: "Domain context as code" for high-accuracy text-to-SQL
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
- Breakout session
A practitioner's guide to federated dbt Mesh at scale with Data Project Factory
Trang Trinh / KrampView session - Hands-on lab
Beyond the basics: Running dbt at scale on Microsoft Fabric
Abhishek Narain / MicrosoftPradeep Srikakolapu / MicrosoftView session - Hands-on lab
Accelerating and optimizing your deployment with dbt v2 and dbt State
Faith McKenna / dbt LabsLucas Silbernagel / dbt LabsView session
