以编程方式使用文档

LangChain 提供了一个庞大的生态系统,包含 1000+ 种集成,涵盖聊天模型、嵌入模型、工具包、文档加载器、向量存储等。

A **提供商** 是指托管 AI 模型并通过 API 提供访问的公司或平台(例如 OpenAI、Anthropic、Google)。许多提供商都有专门的 langchain-<provider> 包,实现了一个或多个 LangChain 标准接口——聊天模型、嵌入模型、向量存储等——无论底层提供商是谁,都为您提供一致的 API。安装包,选择模型名称,即可更换提供商而无需更改代码。

Chat models

Embedding models

Tools and toolkits

Middleware

Checkpointers

Sandboxes

要按组件类型查看完整集成列表,请参阅侧边栏中的类别。

热门提供商

ProviderPackageDownloadsLatest versionJS/TS support
OpenAIlangchain-openai<a href="https://pypi.org/project/langchain-openai/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-openai/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-openai/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-openai?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Google (Vertex AI)langchain-google-vertexai<a href="https://pypi.org/project/langchain-google-vertexai/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-google-vertexai/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-google-vertexai/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-google-vertexai?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Anthropic (Claude)langchain-anthropic<a href="https://pypi.org/project/langchain-anthropic/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-anthropic/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-anthropic/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-anthropic?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Google (GenAI)langchain-google-genai<a href="https://pypi.org/project/langchain-google-genai/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-google-genai/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-google-genai/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-google-genai?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
AWSlangchain-aws<a href="https://pypi.org/project/langchain-aws/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-aws/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-aws/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-aws?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Ollamalangchain-ollama<a href="https://pypi.org/project/langchain-ollama/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-ollama/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-ollama/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-ollama?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Databricksdatabricks-langchain<a href="https://pypi.org/project/databricks-langchain/" target="_blank"><img src="https://static.pepy.tech/badge/databricks-langchain/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/databricks-langchain/" target="_blank"><img src="https://img.shields.io/pypi/v/databricks-langchain?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Chromalangchain-chroma<a href="https://pypi.org/project/langchain-chroma/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-chroma/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-chroma/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-chroma?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Groqlangchain-groq<a href="https://pypi.org/project/langchain-groq/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-groq/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-groq/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-groq?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Huggingfacelangchain-huggingface<a href="https://pypi.org/project/langchain-huggingface/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-huggingface/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-huggingface/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-huggingface?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Azure AIlangchain-azure-ai<a href="https://pypi.org/project/langchain-azure-ai/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-azure-ai/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-azure-ai/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-azure-ai?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
MongoDBlangchain-mongodb<a href="https://pypi.org/project/langchain-mongodb/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-mongodb/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-mongodb/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-mongodb?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
LiteLLMlangchain-litellm<a href="https://pypi.org/project/langchain-litellm/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-litellm/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-litellm/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-litellm?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>N/A
Fireworkslangchain-fireworks<a href="https://pypi.org/project/langchain-fireworks/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-fireworks/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-fireworks/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-fireworks?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
MistralAIlangchain-mistralai<a href="https://pypi.org/project/langchain-mistralai/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-mistralai/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-mistralai/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-mistralai?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Coherelangchain-cohere<a href="https://pypi.org/project/langchain-cohere/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-cohere/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-cohere/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-cohere?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Pineconelangchain-pinecone<a href="https://pypi.org/project/langchain-pinecone/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-pinecone/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-pinecone/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-pinecone?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
xAI (Grok)langchain-xai<a href="https://pypi.org/project/langchain-xai/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-xai/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-xai/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-xai?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
DeepSeeklangchain-deepseek<a href="https://pypi.org/project/langchain-deepseek/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-deepseek/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-deepseek/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-deepseek?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Tavilylangchain-tavily<a href="https://pypi.org/project/langchain-tavily/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-tavily/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-tavily/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-tavily?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Qdrantlangchain-qdrant<a href="https://pypi.org/project/langchain-qdrant/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-qdrant/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-qdrant/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-qdrant?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Nvidia AI Endpointslangchain-nvidia-ai-endpoints<a href="https://pypi.org/project/langchain-nvidia-ai-endpoints/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-nvidia-ai-endpoints/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-nvidia-ai-endpoints/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-nvidia-ai-endpoints?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Milvuslangchain-milvus<a href="https://pypi.org/project/langchain-milvus/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-milvus/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-milvus/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-milvus?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
IBMlangchain-ibm<a href="https://pypi.org/project/langchain-ibm/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-ibm/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-ibm/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-ibm?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Elasticsearchlangchain-elasticsearch<a href="https://pypi.org/project/langchain-elasticsearch/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-elasticsearch/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-elasticsearch/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-elasticsearch?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Perplexitylangchain-perplexity<a href="https://pypi.org/project/langchain-perplexity/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-perplexity/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-perplexity/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-perplexity?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
DataStax Astra DBlangchain-astradb<a href="https://pypi.org/project/langchain-astradb/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-astradb/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-astradb/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-astradb?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
OpenRouterlangchain-openrouter<a href="https://pypi.org/project/langchain-openrouter/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-openrouter/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-openrouter/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-openrouter?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Redislangchain-redis<a href="https://pypi.org/project/langchain-redis/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-redis/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-redis/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-redis?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Togetherlangchain-together<a href="https://pypi.org/project/langchain-together/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-together/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-together/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-together?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
MCP Toolbox (Google)toolbox-langchain<a href="https://pypi.org/project/toolbox-langchain/" target="_blank"><img src="https://static.pepy.tech/badge/toolbox-langchain/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/toolbox-langchain/" target="_blank"><img src="https://img.shields.io/pypi/v/toolbox-langchain?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Google (Community)langchain-google-community<a href="https://pypi.org/project/langchain-google-community/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-google-community/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-google-community/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-google-community?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Nebiuslangchain-nebius<a href="https://pypi.org/project/langchain-nebius/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-nebius/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-nebius/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-nebius?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Unstructuredlangchain-unstructured<a href="https://pypi.org/project/langchain-unstructured/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-unstructured/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-unstructured/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-unstructured?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Neo4Jlangchain-neo4j<a href="https://pypi.org/project/langchain-neo4j/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-neo4j/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-neo4j/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-neo4j?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Weaviatelangchain-weaviate<a href="https://pypi.org/project/langchain-weaviate/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-weaviate/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-weaviate/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-weaviate?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Sambanovalangchain-sambanova<a href="https://pypi.org/project/langchain-sambanova/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-sambanova/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-sambanova/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-sambanova?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Doclinglangchain-docling<a href="https://pypi.org/project/langchain-docling/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-docling/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-docling/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-docling?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Graph RAGlangchain-graph-retriever<a href="https://pypi.org/project/langchain-graph-retriever/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-graph-retriever/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-graph-retriever/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-graph-retriever?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Exalangchain-exa<a href="https://pypi.org/project/langchain-exa/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-exa/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-exa/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-exa?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>
Cerebraslangchain-cerebras<a href="https://pypi.org/project/langchain-cerebras/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-cerebras/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a><a href="https://pypi.org/project/langchain-cerebras/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-cerebras?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a>

所有提供商

查看所有提供商 或使用搜索字段搜索提供商。