
Image Classification using LLMs
llm_image_classification.Rd
Image Classification using LLMs
Usage
llm_image_classification(
llm_model = "qwen2.5vl",
image = system.file("img/test_img.jpg", package = "kuzco"),
backend = "ellmer",
additional_prompt = "",
provider = "ollama",
...
)
Arguments
- llm_model
a local LLM model pulled from ollama
- image
a local image path that has a jpeg, jpg, or png
- backend
either 'ollamar' or 'ellmer', note that 'ollamar' suggests structured outputs while 'ellmer' enforces structured outputs
- additional_prompt
text to append to the image prompt
- provider
for
backend = 'ollamar'
,provider
is ignored. forbackend = 'ellmer'
,provider
refers to theellmer::chat_*
providers and can be used to switch from "ollama" to other providers such as "perplexity"- ...
a pass through for other generate args and model args like temperature