microsoft / lida

Automatic Generation of Visualizations and Infographics using Large Language Models
https://microsoft.github.io/lida/
MIT License
2.57k stars 260 forks source link

Error handling when generating a visualization and repairing it #113

Open vishalsingh-11 opened 2 months ago

vishalsingh-11 commented 2 months ago

Can you please provide a code snippet on how we can handle when there is an error in code when the initial visualization is generated using the below code.

charts = lida.visualize(summary=new_summary, goal=goals[0], textgen_config=textgen_config,library=plotting_lib)

I would like to understand what is best option for the feedback parameter for repairing the visualization. Can we get it from lida.evaluate() or add a user input as feedback or the exception_error