- The method coordinates the analysis process and generates visualisation, insights, recommendations, and tasks based on the specified parameters.
- Uses the
analysis
,visualisation
,insights
,recommendations
, andtasks
methods internally. - It allows for customization of outputs, analysis rerun, insights usage, recommendations format, output type, and counts.
- The generated outputs are returned as a dictionary.
Parameters
The input string provided by the user for generating outputs.
List of outputs to generate. Possible values are
visualisation
, insights
, recommendations
, and tasks
.
Defaults to ["visualisation", "insights", "recommendations", "tasks"]
.Path to save the generated plot. Only relevant when
outputs
includes visualisation
.
Defaults to generated_plots/<random-plot-name>.png
.Parameters for generating recommendations. Includes
from_insights
, output_type
and json_format
.Dictionary containing the counts of insights, recommendations, and tasks to generate.
Context dictionary for the analysis. Includes
analysis
, visualisation
, insights
, recommendations
, and tasks
.Whether to rerun the analysis before generating outputs. Default is True.
Maximum number of retries for generating outputs. Default is 10.
Time limit in seconds for generating outputs. Default is 45 for analysis and 60 for visualization.
Whether to automatically add questions with their SQL query or Python code to the vector store. Default is True.
Returns
Dictionary containing the generated outputs. Includes
visualisation
, insights
, recommendations
, and tasks
.