Structured outputs · Ollama Blog
December 6, 2024
Ollama now supports structured outputs making it possible to constrain a model’s output to a specific format defined by a JSON schema. The Ollama Python and JavaScript libraries have been updated to support structured outputs.
Use cases for structured outputs include:
Parsing data from documents
Extracting data from images
Structuring all language model responses
More reliability and consistency than JSON mode
Get started
Download the latest version of Ollama
Upgrade to the late...
Read more at ollama.com