Structured Outputs ensure responses follow a JSON Schema, enabling automated processing without invalid JSON. Recently, Ollama incorporated Structured Outputs support. Here's how to use this feature with C# client OllamaSharp by defining response models, initializing a client instance, and setting up a request with the defined JSON schema. However, using this feature with the Semantic Kernel Ollama connector currently shows unstructured responses despite correct configuration.

3m read timeFrom bartwullems.blogspot.com
Post cover image
Table of contents
Using Structured Ouput in OllamaSharpWhat about using the Semantic Kernel Ollama connector?More information

Sort: