r/SQL • u/Jaded_Spray_6855 • Sep 16 '26
Discussion Managing a semantic/context layer for data analytics
At a previous job as a data analyst I manually built a "context" layer in Notion to feed to Claude when querying databases. This was painfully manual though, involved a lot of work to slowly build up - I would get Claude to document a table/column when I encounter it for the first time on a new task. The Notion page included things like metrics, conventions and product docs too.
For more experienced data analysts, how do you guys deal with this? Is there a tool you guys use, or is a manual workaround like mine the norm?
7
Upvotes
View all comments
0
u/RajeshRocketMan Sep 16 '26
Manual Notion is the norm until the estate is big enouth to hate it. The failure mode is the same as a wiki: the page and the warehouse drift, and Claude trusts the page. What scales a bit beter:
Claude should read information_schema plus a short certified page, not a novel you typed at 6 p.m. https://mariadb.com/docs/server/
Are you on a warehouse, Postgres, or MySQL/ MariaDB — and is the pain “what does flag_3 mean” or “what is the official revenue metric”?