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