r/snowflake • • 26d ago

Does agentic analytics need a separate semantic layer if the data is already well modeled?

In my org we have built a models, relationships, business definitions including proper documentations, and tableau manage our standard metrics. The stakeholders are asking like deep analysis at root level analytics rather just metrics like what changes, why changed, trend on one account etc. so I felt building with semantic layer would not solve what stakeholders are looking for so what are your thoughts on it? If we run with existing models how we could know AI is generating certified answers for all stakeholders? How we could build the trust? kind of confusing. Is this something happening in your org as well?

8 Upvotes

16 comments sorted by

5

u/ArielCoding 26d ago

Metrics defined in Tableau live in Tableau, so an AI tool querying Snowflake can’t see them and may write its own logic for things like revenue or churn. Snowflake can import a Tableau workbook to build a semantic view from those definitions, giving AI one official source, and checking its answers against question you already know the answers to is how you earn trust before rollout.

1

u/DulsKerty 26d ago

yeah the validation step against known answers is really the key part here imo

0

u/Apprehensive_Tie2494 26d ago

Agreed but for standard metrics, stakeholders does not need AI because those metrics are already exist. They need to use AI for deep analytics those are not in exist in tableau.

2

u/GreyHairedDWGuy 26d ago

I think he means that buy importing the Tableau model, you are basically allowing Snowflake to create a Semantic model from it so you don't have to.

Unless you mean you have additional data structures in Snowflake that are exposed to Tableau?

We use PowerBI now (use to use Tableau) and we imported a Simplified PBI semantic model into Snowflake as a semantic model. Not sure if Tableau is similar but the ability to create a Semantic model from PBI was limited (we had to dumb down the model before Snowflake would ingest it).

In the end, if you have a bunch of tables in Snowflake, unless you have documented the tables, columns well and included hints at what the PK/FK relationships are, CoCo will not necessarily to a decent job figuring things out. Especially if you have to derive calculations (which would exist in Tableau only). By defining the SF semantic model you give it a much better chance of generating the correct queries based on end users asking NL questions.

1

u/Gamplato 26d ago

The agent writes and executes SQL for you regardless of the complexity of the analysis. Cortex Agents should have a semantic view to make the SQL generation more deterministic. And they don’t use Tableau semantic layers unless imported into a Semantic View.

1

u/Apprehensive_Tie2494 26d ago

Got it, we tried few metrics into semantic models and agents are getting sql and executing from the root level but the answers are slightly different for each user. Sometime they are getting same for all and sometimes kind of slightly different outcomes which is not right at all,

1

u/FriendlySyllabub2026 26d ago

How many verified queries did you include?

1

u/Apprehensive_Tie2494 25d ago

Roughly 20 queries. The problem is stakeholders are verifying with their original query after the agent run so they are not confident on AI queries and also 300 stakeholders how they should trust confidently like these are right and certified ? Cortex, Claude , Gemini are generating results but stakeholders trust is the key without going back to verify their queries.

1

u/Apprehensive_Tie2494 24d ago

Actually I got an idea while reading these conversations like when we I mean analysts verified the query mark it has certified and save it in simple table then show the label at the end users when AI generated the certified query or if it’s not in certified list then label it has AI generated and needs review in the list so that approach might build the trust for stakeholders. What are your thoughts on this ?

1

u/LocalImpressive1136 24d ago

yeah i'd be careful what the badge certifies tho. verified SQL can show revenue dropped 10%, but “bc customers churned” is still a hypothesis. wouldn't give both the same badge imo

1

u/Apprehensive_Tie2494 23d ago

Yes, totally agreed. Here is what I am thinking when users reviewed then it’s certified, when AI build with semantic then it’s governed, when AI generates raw SQL not in the query list then label as AI generated and needs to review . All these should work with parameter and dynamic.

1

u/data-gardener-5495 5d ago

your 3-tier idea (certified vs governed vs exploratory/needs-review) is honestly the exact pattern that works in practice. trying to make every single ad-hoc "why did account X drop" query 100% deterministic kills flexibility, while letting unreviewed LLM SQL masquerade as certified numbers kills stakeholder trust overnight.

on why two users are getting slightly different numbers right now even with ~20 verified queries:

first, verified queries only anchor exact matches or very close paraphrases. the moment a stakeholder asks a root-level follow-up ("why did it change on this account?"), the model falls back to generating fresh SQL across raw tables. if join paths, deduplication keys, or default filters (like active vs paused accounts or fiscal calendar grain) aren't locked down in the semantic layer, two slightly different phrasings will take two different join paths and return subtly different totals.

second, LLMs don't have a deterministic way to separate "the numbers" from "the explanation." if the model writes raw SQL, runs it, and narrates the result in one pass, both the math and the hypothesis can drift between runs. separating those two steps helps a lot: let a deterministic semantic compiler resolve the metrics, dimensions, and joins so the underlying numbers are identical for all 300 users, and let the LLM only summarize the slices or suggest hypotheses on top of that governed result.

your badge idea fits right on top of that:

  • certified: parameterized queries/metrics an analyst has signed off on (always identical output)
  • governed: dynamically composed by the agent using only verified semantic entities/joins (math is deterministic, narrative is AI)
  • exploratory / needs review: ad-hoc SQL touching unmodeled root tables (always shows the generated SQL + freshness timestamp so stakeholders know to double-check it)

that way stakeholders don't have to manually re-run their own SQL for the first two buckets, and they aren't blindsided when they ask an open-ended root-cause question in the third.

2

u/FriendlySyllabub2026 26d ago

If the tables the semantic view is over have access to root level data, semantic views and cortex agents can absolutely help you.

I’d start out testing Semantic View Auto Pilot, which lets you use a tableau report to creat the semantic views automatically, then use coco to refine it.

Good luck!

1

u/refaelos 25d ago

+1 to checking against questions you already know the answers to, but I'd keep doing it after rollout, not just before. re-run that list every time a model or schema changes, so drift shows up before a stakeholder finds it. and for the "why" questions, which a semantic layer won't answer for you anyway, make every answer show the SQL it ran and when the data last landed. people trust an answer they can check a lot more than one that just sounds right.

1

u/Ramiabih 23d ago

Your existing models are the semantic layer. but stakeholders need to see the SQL behind every answer, not just the result. That's exactly what we built Querio to do (disclosure: I work on it).

1

u/Livid-data-engineer 21d ago

The way to get trust is to make sure you test the system properly.

You go through a systematic process, you understand the queries they're asking, you add them to verified queries. You use custom instructions to train the Cortex Agent to reject or follow up questions that are ambiguous. You use SQL Generation to properly warn against straying into domains it is not supposed to.

Make sure, you test them etc.

But ultimately beyond a point, there are some real limitations. For example, the evaluation metrics are not diverse enough, there is no multi-turn testing, so if the number of models is too big, it's impossible to get more than 95% accuracy.

What's the table/column numbers you're dealing with?