LLMs for Data Analysis in R
Explore data using natural language
Built on top of ellmer and Shiny
Works with data frames and database connections
👩💻 _demos/05_querychat/05_querychat-dashboard.R
You ask a question in natural language
The LLM writes a SQL query
A database executes the query
You get back real, filtered data
Reliable — the database runs the queries, not the LLM. No hallucinated numbers.
Safe — limited to read-only queries. No data destruction.
Reproducible — SQL can be exported and re-run.
07_querychatOpen 07_querychat-app.R and fill in the querychat_app() call.
Run it and explore the health expenditure dataset with natural language.
Try questions like:
04:00

