
Read image in order to pass it to multimodal models
ql_read_images.Rd
Read image in order to pass it to multimodal models
Examples
if (interactive()) {
library("quackingllama")
img_path <- fs::file_temp(ext = "png")
download.file(
url = "https://ollama.com/public/ollama.png",
destfile = img_path
)
resp_df <- ql_prompt(
prompt = "what is this?",
images = img_path,
model = "llama3.2-vision"
) |>
ql_generate()
resp_df
resp_df$response
}