> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-docs-zh.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Ollama 集成

> 使用 LangChain Python 与 Ollama 集成。

本页面涵盖了LangChain与[Ollama](https://ollama.com/)的所有集成。

Ollama允许您在本地或云端运行开源模型（如[`gpt-oss`](https://ollama.com/library/gpt-oss)）。

如需查看完整的模型及变体支持列表，请参考[Ollama model library](https://ollama.ai/library)。

## 模型接口

> [card] [ChatOllama](https://langchain-docs-zh.mintlify.site/langchain/oss/python/integrations/chat/ollama.md)
>
> Ollama对话模型。

> [card] [OllamaEmbeddings](https://langchain-docs-zh.mintlify.site/langchain/oss/python/integrations/embeddings/ollama.md)
>
> Ollama嵌入模型。

## 其他

> [card] [OllamaLLM](https://langchain-docs-zh.mintlify.site/langchain/oss/python/integrations/llms/ollama.md)
>
> (Legacy) Ollama文本补全模型。

***

> 官方原文：[src/oss/python/integrations/providers/ollama.mdx](https://github.com/langchain-ai/docs/blob/main/src/oss/python/integrations/providers/ollama.mdx) · 非官方翻译，译文由 AI 生成，以英文原文为准。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.