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

#### When Feature Flag is `True`



#### CLI logs


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