Question 1)
I am currently working on integrating Databricks Genie with Microsoft Teams and am looking for guidance on how to return visualizations, images, or URLs in a format that can be rendered in Teams. Specifically, I am trying to figure out how to:
- Return a plot or chart generated in Databricks.
- Provide a link to a Databricks dashboard or chart.
- Return an image URL for a graph so it can be rendered directly in Teams.
I understand that the Genie API primarily supports providing data, but I am interested in knowing the best practices for integrating visual outputs such as charts or images into responses. Should I be modifying the Genie configuration or the prompt templates within Databricks to enable this? Would I need to utilize specific visualization libraries like matplotlib or plotly, or use display commands to generate and return visual outputs?
Currently I get ‘I can only execute SQL queries and provide the data. Please use your preferred visualization tool to plot the graph using the provided data.’ As a response
Question 2)
How do we enable the ai sql function such as ai_forecast. We get the following error while running the function: "AI function ai_forecast is in preview and currently disabled in this environment. SQLSTATE: 0A000" and we don’t see any place to enable the function.