Metadata-Version: 2.4
Name: langchain-ollama
Version: 1.0.0
Summary: An integration package connecting Ollama and LangChain
Project-URL: homepage, https://docs.langchain.com/oss/python/integrations/providers/ollama
Project-URL: repository, https://github.com/langchain-ai/langchain/tree/master/libs/partners/ollama
Project-URL: changelog, https://github.com/langchain-ai/langchain/releases?q=%22langchain-ollama%22
Project-URL: docs, https://reference.langchain.com/python/integrations/langchain_ollama/
Project-URL: twitter, https://x.com/LangChainAI
Project-URL: slack, https://www.langchain.com/join-community
Project-URL: reddit, https://www.reddit.com/r/LangChain/
License: MIT
License-File: LICENSE
Requires-Python: <4.0.0,>=3.10.0
Requires-Dist: langchain-core<2.0.0,>=1.0.0
Requires-Dist: ollama<1.0.0,>=0.6.0
Description-Content-Type: text/markdown

# langchain-ollama

[![PyPI - Version](https://img.shields.io/pypi/v/langchain-ollama?label=%20)](https://pypi.org/project/langchain-ollama/#history)
[![PyPI - License](https://img.shields.io/pypi/l/langchain-ollama)](https://opensource.org/licenses/MIT)
[![PyPI - Downloads](https://img.shields.io/pepy/dt/langchain-ollama)](https://pypistats.org/packages/langchain-ollama)
[![Twitter](https://img.shields.io/twitter/url/https/twitter.com/langchainai.svg?style=social&label=Follow%20%40LangChainAI)](https://twitter.com/langchainai)

Looking for the JS/TS version? Check out [LangChain.js](https://github.com/langchain-ai/langchainjs).

## Quick Install

```bash
pip install langchain-ollama
```

## 🤔 What is this?

This package contains the LangChain integration with Ollama

## 📖 Documentation

View the [documentation](https://docs.langchain.com/oss/python/integrations/providers/ollama) 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:

```bash
ollama pull <name-of-model>
```
