Discussion about this post

User's avatar
Niv Belleli's avatar

That's beautiful, Timothy.

I'm learning that the "standard" way of solving this, stuffing system prompts with business rules can fail just as confidently, and creates a massive maintenance nightmare on top of it.

I tested this recently on a dummy dataset. Without a semantic layer, the LLM fell right into the false success trap: generating flawless, perfectly executing SQL that confidently handed over completely wrong revenue numbers.

When I locked the schema behind a strict YAML semantic layer, the best part wasn't even the 100% accuracy on mapped metrics, it was the fact that it failed safely. If a metric wasn't explicitly defined, it threw a hard stop instead of hallucinating.

If the semantic layer is present, it shifts the responsibility of defining business logic back to the business side instead of just throwing tokens at a problem. A beautiful byproduct of the process.

Damian Waldron's avatar

Great article - as per this post I have attempted an initial implementation of Agentic Structured Meta data for ThoughtSpot's semantic layer. I would love your feedback on this approach. We are running it through actual bench marks to determine what this structure actually does in the real world.

https://www.linkedin.com/posts/damian-waldron_generativeai-thoughtspot-snowflake-ugcPost-7454374244295213056-VlUv?utm_source=share&utm_medium=member_desktop&rcm=ACoAAAD03YwBXBJJaauuRVIOpYkax2tS3kAmu_I

4 more comments...

No posts

Ready for more?