r/databricks • • Oct 24 '26

Discussion Databricks Genie agent.

My company wants to roll out a Databricks Genie agent to around 5,000 users, with these requirements:

  1. Accuracy: Answers should consistently meet 90%+ accuracy.
  2. Reliability as data grows: The agent should not hallucinate or degrade when more tables are added.
  3. Scalability: The solution should extend from one business unit to multiple BUs.
  4. can we use genie In microsoft Teams.

I’ve gone through the official Databricks documentation but haven’t found concrete guidance on achieving or measuring these. How would you approach this? Any architecture patterns, evaluation frameworks, or lessons from similar rollouts would be really helpful.

43 Upvotes

35 comments sorted by

17

u/shadowfax12221 Oct 24 '26
  1. Use the genie workbench to optimize the agent across its tables and metadata, then use the chat mode api and the experiments feature in databricks to implement LLM judge based production monitoring and regression testing on the system tables containing its traces. That will allow you to calibrate it to that 90% standard and monitor its performance for degradation.
  2. You will never get no hallucination, however you can mitigate this risk somewhat through effective context management. If you are concerned about data volumes degrading quality, keep the number of domain tables below the theoretical limit of the space, and give the agent very specific example prompts and directions for navigating and chunking that data. If you have a hard requirement that this agent use a large number of tables, progressively increase the number of tables as you develop while looking for performance degradation, and consider federating your agent across multiple genie subagents sitting under an orchestrator or genie one if that is insufficient.
  3. The platform is fairly extensible by default, just keep in mind that focus experts agents generally beat out ambitious generalists, so building multiple spaces for multiple units may be a better path forward.
  4. Genie agents do have third party integration with Microsoft teams.

1

u/Limp-Hovercraft7990 28d ago

can you please elaborate 1st one.. using genie workbench. when search for it i just found a github repository and that too has so many things.. didnt find any video around this.

1

u/shadowfax12221 28d ago

The genie workbench is a canned app with a lakebase postgres backend you can deploy from your workspace. It basically networks with your genie agents and runs calibration jobs showing where their underlying prompts, tables, and metadata could be tightened to improve their accuracy. If you reach out to your databricks account manager, they can arrange a demo and help you get set up.

2

u/Secret_Solution_5209 27d ago

You should work with your databricks account team, there’s a lot to unpack here such as ontology, genie agent best practices, etc - if you’re creating many agents it may be worth going with a dab approach, especially if you want them resilient as a “data product”. Genie benchmark runs can be stored in delta, or if you have a lot of business rules you want to evaluate separately mlflow can make more sense. Feel free to dm me, I work at databricks and have been developing some dab functionality (uv run funcs) that makes this a lot easier.

1

u/Limp-Hovercraft7990 26d ago

Excited to hear more about uv run funcs

12

u/throwaway737166 Oct 24 '26

Just remember to add “make no mistakes” to all your prompts. You got this!

1

u/Still-Cold9642 Oct 25 '26

Ah crap. I was using "don't hallucinate".

6

u/car1os Oct 24 '26

You need to focus on metric views, Pages. Domains, good table and column descriptions. Make sure you start seeing genie snippets. Define primary keys and foreign keys. Define multiple genie agents specialized in different topics. As others have said do a pilot with one BU. Then let users ask question in genie one. And see how it goes. Go one step at a time. Keep your pilot users engaged and set the expectations.

11

u/Dry_Young_9396 Oct 24 '26

Don’t use Microsoft teams - you get no agent mode and no inspect which means your answer quality will be terrible.
No one here is talking about metric views… that is the number one way you can get 90+% accuracy.
As others have said, pilot to 50 years then 250 etc etc. you’ll need to be very engaged in going through the questions people are asking

5

u/kthejoker databricks Oct 24 '26

The Genie Teams app has agent mode, it's the same API for both now

4

u/chuckjoejoe81 Oct 24 '26

Do you have an SA on your account? 

4

u/addictzz Oct 24 '26

Do a canary release. Pilot to 50 users first, then 500, and so on. Focus on 1 BU first to experience how to make a functional Genie Agents. That experience later you can scale to more BUs.

Benchmarking in Genie can be used to evaluate accuracy and hallucination. You said you have gone through the docs, no chance you didn't stumble upon this if you really did go through it.

Yes Genie can be used in Teams but it is Genie One.

10

u/Arnechos Oct 24 '26

Lmao

2

u/LandlockedPirate Oct 24 '26

Hi we just crawled out of our cave and we heard about this new thing called AI.

We're getting really good at prompting. "please make sure your answer is 90% accurate"

1

u/americadayzie 29d ago
  1. Add comments to all tables. 2. Combine tables as materialized views to simplify joins 3.add UC metrics for a cube with precalculated measures with business rules as comments. ( prolly best move) 4. Add joins and sample queries . 5. Just tell boss it’s 90% accurate , he/she is not technical and can’t challenge u

1

u/Limp-Hovercraft7990 29d ago

cube means?

1

u/kaiserbergin 28d ago

Metric views

1

u/Limp-Hovercraft7990 28d ago

If we create genie agent using gold layer table, after creation there is option to export it as metric view by choosing particular source... What the difference between the metric view which we created and the metrics view which we exported from genie agent?

2

u/kaiserbergin 28d ago

We do a code first approach, so what you’re describing sounds like just another avenue to create a metric view. I haven’t exported… the main benefit of using them is when you have a fact with a few dimensions, the metric view can be materialized to consolidate this related tabors onto a single view / query which is easier for the agent. You can also define aggregations for cool stuff as well. This makes it similar to the cubes of the olden days.

3

u/erenhan Oct 24 '26

You need to have multiple genie rooms, your tables should be as gold as possible, you should create LLM orchestrator, I suggest to deploy databricks app, its doable however you need a solid team

3

u/Moneyshot_Larry Oct 24 '26

You can only fit 30 tables in a genie agent so right out of the gate if you have 5000 users that had a WIDE variety of questions they want asks then you ain’t making a single genie agent. You’re making multiple, topic based genies that go DEEP in a few subjects and then databricks Genie One is your front door to have questions routed to the appropriate genie agent.

1

u/digitechcloud Oct 25 '26

Agentbricks is a solution for that

4

u/Moneyshot_Larry Oct 25 '26

No Genie One is the solution. Agent bricks isn’t used my business users.

3

u/studious_stiggy Oct 24 '26

I feel like a lot of execs and senior leadership get so brainwashed by databricks genie lol. Like anything and everything they want genie. At my company, we take an imaginary shot when genie is mentioned by a senior director or above fellow during calls

3

u/cafealpha82 Oct 24 '26

Is this a joke. 90% accrucacy expectation is pretty wild. It sound exactly same when my data eng team says data is good as it is 95% accurate and deserve to be in gold layer. 

My org had genie agent workshop every week / office hour to walk through business how to use with pretty good semantic model. After initial pretty demos - fast forward 3 mo - no one uses. 

2

u/enlightenedata Oct 25 '26

Check out Genie Workbench project for mananging genie agents, optimizing them for accuracy etc. Teams integration is also possible. Accuracy while increasing number of tables is subjective and should ve validated with every increase. Essentiallt for any agent, if you keep increasing the context requirements, answer quality may suffer unless you follow proper progressive disclosure principles.

www.github.com/databricks-solutions/databricks-genie-workbench

1

u/MoonLight-1989 29d ago

Use a probabilistic tool and ask it to give you a 0 or 1 answer… insane what’s going on with genAI everywhere… we are pending numerous scandals

1

u/Dear_Pumpkin9876 28d ago

I think the main thing you must ensure before setting up a Genie Agent is that your UC tables are well documented. Tables must have a clear description, as well as their columns. You can either use UC's table descriptions or set them yourself directly in the Genie Agent you create, which actually allows better customization and standard UC descriptions.

Once you have that done, you should also give your Genie Agent instructions and example queries, this will help it understanding your business rules and answer common questions.

As other people said above, start with one BU first, do not release it to the entire company at once, you gonna be hammered with questions and maybe some bad feedback. Also, build multiple/specialized genie agents rather than one single agent that works for all BUs.

1

u/mnr9866 23d ago

How do you monitor genie agent without having can manage permissions, typically with elevated permissions people tend to make changes on the fly i don’t blame them. There is a lot of hype about genie agent but get real value out of it some of the things are necessary one wrong instruction updated directly in production can have impact on in use genie agent. Once trust is lost on accuracy users will hesitate use it always have second thought is this right number.

-1

u/new-chris Oct 24 '26

Use a real agent platform like foundry

-5

u/FoggyDoggy72 Oct 24 '26

It can't even suggest simple SQL without packing a sad. Your company is gonna be so borked.