> ## Documentation Index
> Fetch the complete documentation index at: https://nvd-54.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 allows you to run open-source models (like [`gpt-oss`](https://ollama.com/library/gpt-oss)) locally.

For a complete list of supported models and variants, see the [Ollama model library](https://ollama.ai/library).

## 模型接口

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

  <Card title="OllamaEmbeddings" href="/oss/python/integrations/embeddings/ollama" cta="开始使用" icon="message" arrow>
    Ollama embedding models.
  </Card>
</Columns>

## 其他

<Columns cols={2}>
  <Card title="OllamaLLM" href="/oss/python/integrations/llms/ollama" cta="开始使用" icon="cursor-text" arrow>
    (Legacy) Ollama text completion models.
  </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)或[提交 issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>
</div>
