Genie Chat Component
Databricks Genie Spaces are chat spaces where a user can connect to a Data Table from a Warehouse or Lakebase and talk to an AI assistant about the data. This assistant is able to generate SQL to investigate or answer questons about the data, as well as provide meaningful insight into the data as well.
In VDAB, the Genie Chat app component allows the user to add one of these chat spaces to their VDAB app. These step guide the user to setting up a Genie Space on Databricks, linking it as a resource to the VDAB app, and then adding the chat component.
1. Creating a Genie Space
To start, the user will have to create a Genie Space on Databricks, which will be connected to through VDAB in order to talk about the selected data.
- On Databricks, locate the SQL menu section and select the
Genietab. - 2. Then, select the
+ Newbutton on the top right of the screen and select the Catalog, Schema, and Table you want to make the space for and clickCreate - 3. Open the newly created space on Databricks and note the
Nameof the space in theAbout this spacesection. - 4. This name can be changed by selecting the pencil icon within this section.
Now the space is created, and it must be linked as a resource to a VDAB app next.
2. Add Genie Space Resource to VDAB app
Now, open up VDAB and navigate to the Settings page of the app where you want to eventually add a Genie Chat component, and select the Resources tab
- Select
Edit, then selectGenie spaceunder theResource typefield, and add it. - 3. In the
Detailscolumn of the new Genie Space resource row, select the Genie Space based on the default name or name you gave it. - 4. Click
Save resourcesand remember theKeyfor the Genie Space resource for the next step (default isgenie-space)
3. Add Genie Chat Component to VDAB App
Now, the Genie Space is linked to the VDAB app, and needs to be set as the binding for a VDAB Genie Chat component.
- Navigate to the Main Page or Modal where you want the Genie Chat
- Drag & Drop the
Genie Chatcomponent (under theVisualizationcomponent section) onto the canvas where you want it - At the bottom of the properties tab for the Genie Chat, select the resource
Keyfor the Genie Space to link to this component in the last section - Also, in the Genie Chat properties tab, you can check the
Borderbox to outline the Genie Chat space in the deployed app, and you can also set theHeightof the space to make a larger or smaller chat window. - Save the VDAB app and deploy.
Now, the Databricks app is ready to be used with an embedded Genie Chat space
Using Genie Chat
To use a created and linked Genie Chat component within a deployed VDAB app, launch the deployed app, and navigated to the page or modal where the Genie Chat component is located.
In the chat bar, you can ask a question about the data that corresponds to the Databricks Genie Space linked to this app and component
The question will appear in the conversation window, then an assistant response should appear. If the conversation gets too long, the space becomes scrollable.

