langchain-ollama 1.0.0


pip install langchain-ollama

  Latest version

Released: Oct 17, 2025


Meta
Requires Python: <4.0.0,>=3.10.0

Classifiers

langchain-ollama

PyPI - Version PyPI - License PyPI - Downloads Twitter

Looking for the JS/TS version? Check out LangChain.js.

Quick Install

pip install langchain-ollama

๐Ÿค” What is this?

This package contains the LangChain integration with Ollama

๐Ÿ“– Documentation

View the documentation for more details.

Development

Running Tests

To run integration tests (make integration_tests), you will need the following models installed in your Ollama server:

  • llama3.1
  • deepseek-r1:1.5b
  • gpt-oss:20b

Install these models by running:

ollama pull <name-of-model>

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras: None
Dependencies:
langchain-core (<2.0.0,>=1.0.0)
ollama (<1.0.0,>=0.6.0)