Basic Examples (5)

Try a basic question:

({{"[◼]", "OllamaSynthesize" }})["Hello, who was Albert Einstein?"]

Ask a question about an image:

({{"[◼]", "OllamaSynthesize" }})["Who is the person in the picture?",{}]

Ask another question about a different image:

({{"[◼]", "OllamaSynthesize" }})["What animal is this?",{}]

A similar question with a different vision-enabled LLM model:

({{"[◼]", "OllamaSynthesize" }})["What is in this image?",{},"OllamaModel"->"moondream"]

Mix the question and image(s) in a single list:

({{"[◼]", "OllamaSynthesize" }})[{,"What is in this image?"}]

Options (2)

The default model is "Llava". Use the "OllamaModel" option to specify another one:

({{"[◼]", "OllamaSynthesize" }})["Hello, who are what are you?","OllamaModel"->"llama3.2"]

If you specify a model that does not exist or a model that you did not download locally, then an error is raised:

({{"[◼]", "OllamaSynthesize" }})["Hello, who are what are you?","OllamaModel"->"xxx"]

Possible Issues (1)

You are responsible for installing Ollama on your machine and for the downloading of the models you wish to use. To list the available models, you can run the following (undocumented) command:

Ollama`Models[]