API reference for the DataAnalyzr ask
method
This method orchestrates the analysis process and generates visualization, insights, recommendations, and tasks based on the specified inputs and parameters. It is the recommended method to use for generating visualization, insights, recommendations, and tasks.
analysis
, visualisation
, insights
, recommendations
, and tasks
methods internally.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.
Dictionary containing the generated outputs. Includes visualisation
, insights
, recommendations
, and tasks
.