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

# Ollama 集成

> 使用 LangChain Python 与 Ollama 集成。

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

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

有关支持模型和变体的完整列表，请参阅 [Ollama 模型库](https://ollama.ai/library)。

## 模型接口

<Columns cols={2}>
  <Card title="ChatOllama" href="/oss/python/integrations/chat/ollama" cta="开始使用" icon="message" arrow>
    Ollama 聊天模型。
  </Card>

  <Card title="OllamaEmbeddings" href="/oss/python/integrations/embeddings/ollama" cta="开始使用" icon="message" arrow>
    Ollama 嵌入模型。
  </Card>
</Columns>

## 其他

<Columns cols={2}>
  <Card title="OllamaLLM" href="/oss/python/integrations/llms/ollama" cta="开始使用" icon="cursor-text" arrow>
    （旧版）Ollama 文本补全模型。
  </Card>
</Columns>

***

<div className="source-links">
  <Callout icon="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/i18n\zh-CN\oss\python\integrations\providers\ollama.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>

  <Callout icon="terminal-2">
    [Connect these docs](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
  </Callout>
</div>
