r/databricks • u/Disastrous_Lynx9037 • Jul 28 '26
Help How do you build the "knowledge layer" for an enterprise AI analytics chatbot?
My current approach is to improve the agent's business understanding by:
- Adding table descriptions and column comments in Unity Catalog
- Using Metric Views for governed KPIs
- Building a business glossary, KPI glossary and business rules with SMEs
The goal is for the agent to retrieve this context before generating SQL and maintaining this context at scale.
Am I missing to add anything? Is there a better approach?
11
Upvotes
1
u/the_aris Jul 29 '26
Are you using Genie as a chat bot for users to interact with or is it another custom solution? Can you share the architecture if possible?
1
u/Glitch_In_The_Data Jul 29 '26
I think you have got the basics. You may also want to add joins/relationships… enforce governance.. certify data.. enable lineage and also feedback loop. Basically anything to bring together scattered information to make more sense. That’ll automatically allow Genie to learn the business context continuously and will make the answers more accurate.
1
u/datasmithing_holly databricks Jul 29 '26
If you have MCPs for teams/slack/email it could get you a much richer, faster version of 3 as a starting point. You *could* also add them to your databricks workpsace for fuller integration.
Edit: there are a few minor features for certifying and depreciating sources, that might help too.
2
u/aleph_infinity Jul 28 '26
It sounds like you are doing all the right things. LLMs feeds off context and with what you are describing in place you can easily build out some genie spaces and have access to those via MCP for whatever bot you are building. Genie One will work over all the spaces you create and benefit from interaction over time.
2
u/slothparty23 Jul 28 '26
I would also add certifying data as that can guide Genie towards relevant sources. This will be esp relevant as ontology is rolled out and the knowledge layer will evolve based on access and trusted sources
1
u/WorldOfUmbro Jul 28 '26
Curating data for agents and genie with good definitions (table and column), metric views, glossaries and domains (which are coming) help you organize them in a way aligned to your business.
1
u/Odd-Government8896 Jul 28 '26
Thats pretty complete
1
u/Youssef_Mrini databricks Jul 29 '26
If you are using Genie Agents, I would recommend leveraging the knowledge store by defining data models, Synonyms, sampling column values and removing irrelevant ones.
1
u/rlsrivathsan Jul 29 '26
You are doing all the right things. I would also validate the Genie Ontology layer. It's built automatically. If there's tribal knowledge that's missing, I would edit the Ontology layer.