Skip to content

Ask Your CSV in Plain English

Upload a CSV, ask a question and get a chart plus the SQL that produced it.

Intermediate14h1–2 people18/20 fit
TL;DR

Build Ask Your CSV in Plain English for analysts, founders and students in ~14h with 1–2 people. Stack: DuckDB + LLM + Charts + Next.js.

Why it wins: Showing the generated SQL builds trust and teaches at the same time.

Build flow

01 · Problem
People with data but no SQL skills cannot answer simple questions quickly.
02 · Solution
Load the CSV into DuckDB in the browser, have an LLM write SQL from the schema and question, run it locally and pick a chart type for the result.
03 · Build
  1. 1Load CSV with DuckDB-Wasm
  2. 2Send schema and question to the LLM
  3. 3Run the SQL and catch errors
  4. 4Render a chart and table
04 · Demo
Ask 'which month had the highest refunds?' on a real dataset and show the SQL.

MVP checklist

  • Browser-side CSV loading
  • Question to SQL
  • Auto chart
  • Editable SQL

Tech stack

TechRole
DuckDBIn-process analytics SQL
LLMLanguage model
ChartsData visualisation
Next.jsFrontend + API routes

Reference repos

Open-source projects you can build on. Links checked 2026-10-31.

Related ideas

More AI