Nothing
library(tidyverse)
library(ellmer)
library(vitals)
devtools::load_all()
plt <- tibble(
input = "Please make a ggplot of mpg vs hp in mtcars and tell me what you see.",
target = "Something like `ggplot(mtcars) + aes(x = hp, y = mpg)"
)
tsk <- Task$new(
dataset = plt,
solver = generate(
solver_chat = chat_claude()$register_tool(predictive:::tool_run_r_code)
),
scorer = model_graded_qa(scorer_chat = chat_claude())
)
tsk$eval()
# ------------------------------------------------------------------
# ch <- chat_claude()$register_tool(predictive:::tool_run_r_code)
# ch$chat(
# "Please make a ggplot of mpg vs hp in mtcars and tell me what you see.",
# echo = FALSE
# )
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.