๐ Chart Generation with LLM Agents
This app uses LLM Agents with Reflection Pattern to generate and improve data visualizations.
How it works:
- Enter your chart instruction (e.g., "Create a plot comparing Q1 coffee sales in 2024 and 2025")
- The LLM generates initial chart code (V1)
- The system reflects on V1 and generates improved code (V2)
- Both charts are displayed for comparison
Dataset: Coffee sales data with columns: date, time, cash_type, card, price, coffee_name, quarter, month, year
Generation Model (for V1)
Reflection Model (for V2)
๐ Chart V1 (Initial)
โจ Chart V2 (Improved)
๐ก Tips:
- Be specific in your instructions (mention time periods, chart types, etc.)
- Use a faster model for generation (V1) and a stronger model for reflection (V2)
- The reflection model analyzes the V1 chart image and suggests improvements