Abhishek-kumar-samsung opened a new issue, #32650:
URL: https://github.com/apache/superset/issues/32650

   ## [SIP] 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](https://github.com/user-attachments/assets/870d9d91-5efe-40cb-a58c-3cb83d9d8ca5)
   
   ### 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](https://github.com/user-attachments/assets/fc97c3c3-bad1-46f7-af28-fda0dba21473)
   
   
![Image](https://github.com/user-attachments/assets/0c9c0e7c-3a71-48a9-8f6a-dc3860845e2d)
   
   
![Image](https://github.com/user-attachments/assets/901e6afc-0539-471b-98dc-b9e42e05870d)
   
   #### When feature is `False` i.e default view
   
   
![Image](https://github.com/user-attachments/assets/275d455e-9d57-4bdd-8526-59120a0f3f47)
   
   CLI logs when query runs looks like :
   
   
![Image](https://github.com/user-attachments/assets/0acf21e6-2474-48d0-9d28-772231b73437)
   
   
![Image](https://github.com/user-attachments/assets/8447aa7d-a9ab-419f-a659-ad0b25b39400)
   
   ### PR Raised
   PR link : https://github.com/apache/superset/pull/32649


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to