Using Schemas with Ollama
Ollama added support for json schema-based output a while ago. So you can tell what output is coming from back from the model, and with a nice structure.
I found the quality of the answers to be slightly lower, but with the added advantage of a well-formatted response.
Pyjama has full support for creating ollama functions based on a schema. Which means function are called as Clojure function, and transparently making request calls to your ollama running model.