Use ellmer::models_anthropic() or ellmer::models_openai() to find a model to use
id name created_at cached_input input
NA claude-fable-5 Claude Fable 5 2026-06-07 NA NA
NA.1 claude-opus-4-8 Claude Opus 4.8 2026-05-28 NA NA
16 claude-opus-4-7 Claude Opus 4.7 2026-04-14 0.5 5
24 claude-sonnet-4-6 Claude Sonnet 4.6 2026-02-17 0.3 3
14 claude-opus-4-6 Claude Opus 4.6 2026-02-04 0.5 5
13 claude-opus-4-5-20251101 Claude Opus 4.5 2025-11-24 0.5 5
8 claude-haiku-4-5-20251001 Claude Haiku 4.5 2025-10-15 0.1 1
22 claude-sonnet-4-5-20250929 Claude Sonnet 4.5 2025-09-29 0.3 3
10 claude-opus-4-1-20250805 Claude Opus 4.1 2025-08-05 1.5 15
output
NA NA
NA.1 NA
16 25
24 15
14 25
13 25
8 5
22 15
10 75
data_description.md file in your directory (see `querychat/app_data_description/data_desscription.md)ggsql packagetool argument to include visualize:library(palmerpenguins)
library(querychat)
data(penguins)
my_data <- penguins
client <- ellmer::chat_anthropic(model="claude-sonnet-4-5")
qc <- querychat(
data_source = penguins,
client=client,
data_description = "data_description.md",
greeting = "Welcome to exploring the world of penguins!",
tools=c("query", "filter", "visualize"))
qc$app()The QueryChat object has a few methods that act as reactives that you can use to plug in to visualizations:
Then you can add this to your code.
qc_vals$df() - the actual filtered data from QueryChatqc_vals$sql() - the SQL stringqc_vals$title() - The title of the filter