Abhishek-kumar-samsung opened a new pull request, #32649:
URL: https://github.com/apache/superset/pull/32649

   This PR is to add LLM agentic query search button at the top of the 
dashboard if the feature flag is set to `True`
   
   ### SUMMARY
   I have added a search button at the top of the dashboard, allowing users to 
ask any query related to the dashboard, charts, anomalies, summaries, etc. When 
the button is clicked, it will perform an LLM agent query and return the query 
response in a modal.
   
   By default, the search button will not be visible. To enable it, set the 
`SHOW_DASHBOARD_AGENT_QUERY` feature flag to True and update the OpenAI API key 
in superset_config. If you are using a locally hosted LLM, update the base URL 
instead.
   
   DASHBOARD_AGENTIC_QUERY_CONFIG = {
       "model": "gpt-4o",
       "temperature": 0.8,
       "max_tokens": None,
       "timeout": None,
       "max_retries": 2,
       "api_key": "-",
       "base_url": "",
   }
   
   #### 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.
   
   
   ### Screenshots
   
   #### When Feature Flag is `False` i.e default i.e no change exactly like 
original superset
   ![107 99 237 
72_9000_superset_dashboard_1__native_filters_key=6maYj4nzD9I](https://github.com/user-attachments/assets/5ced086a-db52-49ce-9090-04bfac722344)
   
   #### When Feature Flag is `True`
   
![ss5](https://github.com/user-attachments/assets/2e5b1e14-2b4b-4c14-b10a-64f12d85d870)
   
![ss3](https://github.com/user-attachments/assets/f1cac7d0-fe8e-49ee-8602-41c30068481e)
   
![ss4](https://github.com/user-attachments/assets/0825fa6d-e233-4d6c-976d-062c28a52e09)
   
   #### CLI logs
   
![ss1](https://github.com/user-attachments/assets/4d0feba3-0d9b-4286-87fe-f4ec188e2619)
   
![ss2](https://github.com/user-attachments/assets/c6445deb-c3bd-41da-8f7f-c53e032bb4ab)
   
   


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