Back to Templates

Query Chat

View App View Code on GitHub
shiny create --template querychat --github posit-dev/py-shiny-templates/gen-ai

This app template allows end users to ask questions about a dataset using natural language. It leverages the querychat package to make the implementation as simple as possible. Under the hood, querychat instructs the LLM to translate user questions into formal SQL queries, which are then executed against the dataset. The resulting “modified” data is then made available as a reactive calculation so you make further use of it in your app.

To learn more, visit querychat’s website

Components:

Layouts:

Packages:

chatlas querychat