Skip to content

[SIP-157] Proposal for Agentic Query In Dashboard #32650

Open
@Abhishek-kumar-samsung

Description

@Abhishek-kumar-samsung

[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:

  1. Users can perform natural language query-based searches on the dashboard.
  2. Users can ask specific questions about any chart using natural language.
  3. Users can request a summary of a chart or the entire dashboard by asking the search button to do so.
  4. 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:

  1. Dashboard view changed based on feature flag in superset_config SHOW_DASHBOARD_AGENT_QUERY.
  2. Added a new action in dashboard react components to call query dashboard rest api.
  3. Added a new REST api in dashboard apis to query dashboard.

Image

New dependencies

  1. Added two PyPI packages langchain and langchain-openai, both have MIT license.
  2. 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

Image

Image

Image

When feature flag is False i.e default view

Image

CLI logs when query runs looks like :

Image

Image

PR Raised

PR link : #32649

Metadata

Metadata

Assignees

No one assigned

    Labels

    change:backendRequires changing the backendchange:frontendRequires changing the frontenddesign:proposalDesign proposalssipSuperset Improvement Proposal

    Type

    No type

    Projects

    • Status

      Pre-discussion

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions