Open
Description
[SIP-157] Proposal for Agentic Query In Dashboard
Motivation
This SIP aims to provide users with the flexibility to ask any question they desire from the dashboard. Our motivation is to place a search button at the top of the dashboard, enabling users to input any natural language query that can be answered using the dashboard's charts.
Proposed Change
We propose to add an LLM agentic query search button at the top of the dashboard if the feature flag is set to True.
Use cases:
- Users can perform natural language query-based searches on the dashboard.
- Users can ask specific questions about any chart using natural language.
- Users can request a summary of a chart or the entire dashboard by asking the search button to do so.
- Feature Flag: Users have an option to make feature flag as
False
if they don't want to use the feature.
New or Changed Public Interfaces
Views changed:
- Dashboard view changed based on feature flag in superset_config
SHOW_DASHBOARD_AGENT_QUERY
. - Added a new action in dashboard react components to call
query dashboard
rest api. - Added a new
REST
api in dashboard apis to query dashboard.
New dependencies
- Added two PyPI packages langchain and langchain-openai, both have MIT license.
- To run this feature user has to update LLM configurations in superset_config, mainly api_key if they want to use openai or base_url if they want to use locally running llm.
Mockups and Screenshots
When feature flag is True
When feature flag is False
i.e default view
CLI logs when query runs looks like :
PR Raised
PR link : #32649
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Pre-discussion