-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add format support for Ollama generators #1232
Labels
Comments
Related issue: deepset-ai/haystack#8276 |
A simple hack for now is to override/extend the OllamaGenerator component. Example below:
You must have the latest ollama version of course. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Ollama has introduced structured output as reported here.
This feature now allows developers to define a json schema which represents the expected output format
Describe the solution you'd like
Adding the support should be straightforward since it just require to add and propagate a new parameter 'format' to the generator. It may look like:
Describe alternatives you've considered
N/A
Additional context
The Ollama launch blog
The text was updated successfully, but these errors were encountered: