langchain-ai / langchain

🦜🔗 Build context-aware reasoning applications
https://python.langchain.com
MIT License
89.71k stars 14.18k forks source link

JSON response support for Ollama #13770

Closed abaranovskis-redsamurai closed 4 months ago

abaranovskis-redsamurai commented 8 months ago

Feature request

JS LangChain (https://js.langchain.com/docs/integrations/chat/ollama_functions) supports Ollama Functions and allows to return JSON output from Ollama. It would be good to have the same functionality in Python LangChain.

Motivation

JSON response from LangChain Ollama would be very useful, when integrating LangChain into API pipelines running on local environments

Your contribution

I could test the implementation.

dosubot[bot] commented 8 months ago

🤖

It seems like you've got this under control, if you want help or have specific questions, let me know what I can do for you!