Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Models
Michael Rumiantsau, Ivan Fokeev

TL;DR
Providing explicit business semantics as context significantly improves the accuracy of large language models in data querying tasks, reducing hallucinations and incorrect answers.
Contribution
This study demonstrates that adding a semantic-layer document to LLM prompts greatly enhances accuracy and reduces model variance in natural-language data queries.
Findings
Adding a semantic document improves accuracy by 17-23 percentage points.
Models become statistically indistinguishable with semantic context.
Explicit semantics suppress common text-to-SQL errors.
Abstract
LLMs deployed for natural-language querying of analytical databases suffer from two intertwined failures - incorrect answers and confident hallucinations - both rooted in the same cause: the model is forced to infer business semantics that the schema does not encode. We test whether supplying those semantics as context closes the gap. We benchmark three frontier LLMs (Claude Opus 4.7, Claude Sonnet 4.6, GPT-5.4) on 100 natural-language questions over the Cleaned Contoso Retail Dataset in ClickHouse, using a paired single-shot protocol. Each model is evaluated twice: once given only the warehouse schema, and once given the schema plus a 4 KB hand-authored markdown document describing the dataset's measures, conventions, and disambiguation rules. Adding the document improves accuracy by +17 to +23 percentage points across all three models. With it, the three models are statistically…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
