You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "ved-kashyap-samsung (via GitHub)" <gi...@apache.org> on 2025/02/27 09:42:04 UTC
[I] [SIP] Proposal for Agentic Dashboard and Chart Summarization using LLM [superset]
ved-kashyap-samsung opened a new issue, #32408:
URL: https://github.com/apache/superset/issues/32408
## Motivation
The goal of this proposal is to introduce a new feature into Apache Superset that leverages Large Language Models (LLMs) to provide advanced dashboard and chart summarization capabilities. This feature aims to enhance user experience by enabling natural language query support, automated summarization, and intelligent chart selection based on user queries. The proposed feature will also reduce dependency on less accurate NL-to-SQL conversion models by directly utilizing LLMs for query processing.
## Proposed Change
### Overview
We propose the integration of an LLM-based agentic architecture into Superset to enable the following capabilities:
1. Natural language query support for dashboards and charts.
2. Intelligent selection of appropriate charts based on natural language queries.
3. Automated summarization of chart data and dashboards.
4. Automated text-based reporting based on predefined KPIs and schedules.
5. Graceful handling of scenarios where relevant charts are not found for a given query.
### Implementation Details
1. **LLM Integration**:
- Integrate an LLM capable of understanding and processing natural language queries.
- Develop an agent-based system where LLMs can perform actions such as selecting relevant charts based on user query, fetching relevant SQL queries from existing APIs, applying filters, running final SQL query and getting results, and finally summarizing results and generating insights.
2. **Natural Language Query Support**:
- Add input fields at both dashboard and chart levels to support natural language queries.
- Implement backend services to process these queries using the LLM.
3. **Chart and Dashboard Summarization**:
- Provide summarization options in the chart menu based on the loaded data.
- Implement automated text-based reporting for dashboards using cron jobs for predefined KPIs.
4. **Intelligent Chart Selection**:
- Develop mechanisms for LLMs to pick the correct chart based on chart names or associated metadata.
- Ensure graceful handling when no relevant charts are found for a query.
5. **Feature Flags**:
- Enable the feature using feature flags to allow users to opt-in on a per-user basis.
### Mockups and Screenshots
*Mockups and screenshots will be added here once the design phase is complete.*
## New or Changed Public Interfaces
1. **REST Endpoints**:
- New endpoints for processing natural language queries and returning summarized results.
2. **React Components**:
- New input fields for natural language queries at the dashboard and chart levels.
- Updated chart menu with summarization options.
3. **Configuration**:
- Configuration options for enabling/disabling the feature using feature flags.
4. **CLI Changes**:
- New CLI commands for managing LLM-related configurations and feature flags.
## New dependencies
1. **LLM Libraries**:
- We will integrate with existing LLM libraries such as Hugging Face's Meta-Llama-3-8B
- Ensure compatibility with Apache License v2.0.
2. **Other Dependencies**:
- Additional Python packages for natural language processing and machine learning (e.g., NLTK, spaCy).
## Migration Plan and Compatibility
1. **Database Migrations**:
- No database migrations are required for this feature.
2. **Compatibility**:
- Ensure that existing dashboards and charts continue to function without any changes.
- Provide a seamless upgrade path with clear documentation on enabling and using the new feature.
3. **Deprecation Strategy**:
- Allow the new feature to coexist with existing NL-to-SQL conversion models during a deprecation period.
- Provide clear documentation and migration guides for users transitioning to the new system.
## Rejected Alternatives
1. **Enhancing Existing NL-to-SQL Models**:
- While enhancing existing NL-to-SQL models could improve accuracy, it would require significant effort in model training and fine-tuning. The LLM-based approach offers a more flexible and scalable solution.
2. **Rule-Based Systems**:
- Rule-based systems lack the flexibility to handle the wide variety of natural language queries effectively. LLMs provide a more robust solution by understanding context and intent.
By integrating LLM-based agentic architecture into Superset, we can significantly enhance the user experience with advanced natural language processing capabilities, making it easier for users to interact with their data and generate insights.
---
This SIP is now open for discussion. Please subscribe and provide your feedback here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] [SIP] Proposal for Agentic Dashboard and Chart Summarization using LLM [superset]
Posted by "ved-kashyap-samsung (via GitHub)" <gi...@apache.org>.
ved-kashyap-samsung commented on issue #32408:
URL: https://github.com/apache/superset/issues/32408#issuecomment-2688097877
> Seems to be duplicate of [SIP-140](https://github.com/apache/superset/issues/28167). Aside from that, I'm a bit skeptical on this benefit
>
> ```
> ... provide advanced dashboard and chart summarization capabilities ...
> ```
>
> Isn't the point of having dashboard and/or chart is to summarize raw data into human-readable visualization already?
It is not the duplicate of the SIP mentioned by you. I have mentioned that one in rejected alternatives.
Also, Textual insights on charts and graphs provide several benefits:
## Enhanced Understanding
1. _Clearer interpretation_: Textual insights help users quickly grasp the meaning behind the data, reducing confusion and misinterpretation.
2. _Contextualization_: Additional text provides context, enabling users to understand the relevance and significance of the data.
## Improved Decision-Making
1. _Actionable recommendations_: Textual insights can offer concrete suggestions or recommendations based on the data, facilitating informed decision-making.
2. _Data-driven storytelling_: By combining data with narrative, users can better comprehend complex information and make data-driven decisions.
## Increased Efficiency
1. _Reduced analysis time_: Textual insights save users time and effort by providing a concise summary of key findings.
2. _Simplified communication_: Clear and concise textual insights facilitate communication among stakeholders, ensuring everyone is on the same page.
## Anomaly Detection
1. _Highlighting unusual patterns_: Textual insights can automatically identify and highlight unusual patterns or anomalies in the data, enabling users to quickly investigate and address potential issues.
## Better Accessibility
1. _Accessibility for non-technical users_: Textual insights make complex data more accessible to non-technical stakeholders, promoting a broader understanding of the information.
2. _Assistive technology compatibility_: Text-based insights can be more easily interpreted by assistive technologies, such as screen readers.
## Enhanced Engagement
1. _Engaging storytelling_: Textual insights can present data in a more engaging and narrative-driven format, capturing users' attention and encouraging exploration.
2. _Personalization_: Tailored textual insights can address specific user needs, increasing engagement and relevance.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] [SIP-155] Proposal for Agentic Dashboard and Chart Summarization using LLM [superset]
Posted by "zirenk (via GitHub)" <gi...@apache.org>.
zirenk commented on issue #32408:
URL: https://github.com/apache/superset/issues/32408#issuecomment-2967976917
Any news on this great idea?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] [SIP] Proposal for Agentic Dashboard and Chart Summarization using LLM [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #32408:
URL: https://github.com/apache/superset/issues/32408#issuecomment-2691396222
Hi @ved-kashyap-samsung - thank you for the clarification. There have been a handful of discussions around this in various fora. Are you already on [slack](https://bit.ly/join-superset-slack)? If you can DM me there, perhaps some of the Superset committers/PMC members can join a thread there, discuss some ideas/proposals (and lessons learned building similar features on forks) and find a good way to make this work well with the open-source project. Then we can bring those ideas back to this (more official) discussion to gather consensus on.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] [SIP-155] Proposal for Agentic Dashboard and Chart Summarization using LLM [superset]
Posted by "taha2009 (via GitHub)" <gi...@apache.org>.
taha2009 commented on issue #32408:
URL: https://github.com/apache/superset/issues/32408#issuecomment-3449838514
This i would say is a must have, also a chatbot based dashboard creator e,g, "using this dataset create the sales overtime line graph"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] [SIP-155] Proposal for Agentic Dashboard and Chart Summarization using LLM [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #32408:
URL: https://github.com/apache/superset/issues/32408#issuecomment-2859178996
I don't see a DISCUSS thread. We're all still trying to figure out what the pattern is to build a flexible/scalable AI "service" in Superset, so feel free to do that, otherwise this might be closed as inactive/abandoned eventually.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] [SIP-155] Proposal for Agentic Dashboard and Chart Summarization using LLM [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #32408:
URL: https://github.com/apache/superset/issues/32408#issuecomment-2790513861
This hasn't yet been brought up for a [DISCUSS] thread... that's the next step in moving it forward, so holler if you would like help with that (here or on Slack)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] [SIP] Proposal for Agentic Dashboard and Chart Summarization using LLM [superset]
Posted by "hainenber (via GitHub)" <gi...@apache.org>.
hainenber commented on issue #32408:
URL: https://github.com/apache/superset/issues/32408#issuecomment-2687709930
Seems to be duplicate of [SIP-140](https://github.com/apache/superset/issues/28167). Aside from that, I'm a bit skeptical on this benefit
```
... provide advanced dashboard and chart summarization capabilities ...
```
Isn't the point of having dashboard and/or chart is to summarize raw data into human-readable visualization already?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] [SIP-155] Proposal for Agentic Dashboard and Chart Summarization using LLM [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #32408:
URL: https://github.com/apache/superset/issues/32408#issuecomment-4700076387
This never got a [DISCUSS] thread on the dev list to move forward — that's where we'd hash out a model-agnostic, generalizable approach (and whether it lives in core or as an Extension). I think I'll close this as discarded for now, since we now have MCP in place, frontend tooling for chat impementations are en route, and this has largely been abandoned and/or superseded. Holler if you think I'm mistaken about any of this and want to champion getting more done on this one :D
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] [SIP] Proposal for Agentic Dashboard and Chart Summarization using LLM [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #32408:
URL: https://github.com/apache/superset/issues/32408#issuecomment-2718419571
I think the main thing I'd look for from any AI/LLM proposal in Superset is how to _generalize_ the approach. I think we need to have a consistent way we add individual features (there could be _many_ of them) so they define consistent patterns in the UI/UX. I also think we should not be locked into any single Model/Service, and should use tools like LangChain/LangGraph to reply on the admin's configuration (so long as these packages are license-compatible). The more diverse we can make the offering, the better. This may also intersect with the Extensions architecture happening in parallel, so we should be asking ourselves "which of these features should be core to Superset, and which could be Extensions?"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] [SIP-155] Proposal for Agentic Dashboard and Chart Summarization using LLM [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #32408: [SIP-155] Proposal for Agentic Dashboard and Chart Summarization using LLM
URL: https://github.com/apache/superset/issues/32408
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org