> ## Documentation Index
> Fetch the complete documentation index at: https://cndoc-langchain.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 模型库](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="terminal-2">
    [将这些文档连接](/use-these-docs)到 Claude、VSCode 等，通过 MCP 获取实时答案。
  </Callout>

  <Callout icon="edit">
    [在 GitHub 上编辑此页面](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/providers/ollama.mdx) 或 [提交问题](https://github.com/langchain-ai/docs/issues/new/choose)。
  </Callout>
</div>
