A scenario for a forward deployed engineer · Junior and up
Where is my order?
Patch · Your teammate
Wednesday, 11:30
A customer's chat agent on Databricks must tell a shopper where an order is. Orders live in a Unity Catalog table. A colleague proposes letting the model write its own SQL and run it with your access token.
What do you do?
Tap the one you would do. The answer opens below.
Show the best callThe best call
Write a Unity Catalog function that takes an order id and returns its status, and give it to the agent as a tool.
The agent can ask that one question of the table and nothing else. Who may call it is a grant on the function.
Why
A Unity Catalog function is predefined logic, such as a SQL query whose parameters the agent supplies. As a tool it limits the agent to that one question, and calling it takes an EXECUTE grant. The agent decides when to call it and with which order id. It does not decide what the query is.
Read it in the Databricks docs (opens in a new tab)The other two
- Works, at a price. Export the open orders to text every hour and add them to the search index.
- It answers, up to an hour late, and every order is embedded again for what is a lookup by id.
- A poor call. Let the model write SQL and run it with your token.
- It works in the demo. Then someone asks it to list every customer's address, and it does.
The words in this scenario
- Unity Catalog.
- The part of Databricks that governs data: who may see and change which tables and files, where data came from, and who did what. In the docs (opens in a new tab)
Go deeper on brickster.ai
- AI Agents: what changed recentlyNews, releases, videos and questions on it, gathered daily.
More scenarios
- German staff get the French policy · forward deployed engineer
- The assistant made up a revenue figure · forward deployed engineer
- The price tables come out scrambled · forward deployed engineer
- All 77 scenarios
Had one like this at work? Send it to us: the best tickets come from real incidents.
Added on . Checked against the Databricks documentation on . brickster.ai is independent and is not affiliated with Databricks.