Data Visualization Part I

What

We would like to explore the insight of business data by having a chat with LLM and then visualizing it with Echarts diagram.

Goal

  • given a dataset

    Product201520162017
    Matcha Latte43.385.893.7
    Milk Tea83.173.455.1
    Cheese Cocoa86.465.282.5
    Walnut Brownie72.453.939.1
  • visualize the data with Echarts

    • the type of the chart is also given by LLM

      • for example 'bar' chart or 'line' chart
      • the theme of the chart is pre-set

    dataset

How

Inputs

  • chat with LLM

Outputs

  • metrics / dimensions

  • business data base on above

    • chart dataset
  • chart type

Stages

  • 1st stage: find the measure, metrics and dimensions from conversation

    by prompt / example selectors

    metricsopen in new window need to break down into dimensionsopen in new window

    • in the given example above
      • the measure is 'number of sales in 1000 units'
      • the metric is 'product'
      • the dimension is 'year'
  • 2nd stage: retrieve the data from database

    by prompt / example selectors

    • by SQL API ?
  • 3rd stage: recommend the chart type

    • by LLM
  • 4th stage: visualize the chart

    • by Our Own API