$npx skillfedfor your agent

langchain-huggingface

An integration package connecting Hugging Face and LangChain.

Worth itPyPI Artificial IntelligenceReleased Apr 20261.8M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — langchain_huggingface-1.2.2-py3-none-any.whl
v1.2.2 · released 2026-04-16 · Python <4.0.0,>=3.10.0 · 3 runtime deps: huggingface-hub, langchain-core, tokenizers

Yes. This is an active, well-maintained integration for a widely-used ecosystem (Hugging Face). Low install friction, permissive license, no known vulnerabilities, and broad Python version support (3.10–3.14) make it a straightforward choice if you need Hugging Face models or embeddings in LangChain. Be aware that local inference requires the [full] extra with newer dependency versions than langchain-community previously accepted.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • For local inference (HuggingFaceEmbeddings, HuggingFacePipeline), install the [full] extra which adds sentence-transformers>=5.2.0 and transformers>=5.0.0.
  • Requires Python 3.10 or later.
  • Low friction install with a pure-Python wheel.

License · maintenance · safety

MIT (permissive) — MIT license is permissive and poses no restrictions on commercial or private use.

last release 2026-04-16 (120 days) · last repo commit 2026-08-14 · 144,266 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,793,338 downloads/mo, #3,551 on PyPI

Verify before relying

pip install langchain-huggingface

from langchain_huggingface import HuggingFaceEmbeddings
# or
from langchain_huggingface import HuggingFaceEndpoint
  • Whether the package supports all Hugging Face model types or only a subset
  • Performance characteristics when using remote Hugging Face endpoints vs. local inference
  • Whether authentication credentials are required for all use cases or only certain endpoints
Same gist for agents: .md · .json

What it is and what it does

langchain-huggingface is a LangChain integration package that bridges Hugging Face models and embeddings into LangChain workflows. It provides classes to work with Hugging Face resources either through local inference or remote API endpoints, letting you embed text and run language models within LangChain applications.

The package has three core runtime dependencies: huggingface-hub (for API access), langchain-core (the LangChain framework), and tokenizers (for text processing). Local inference requires additional optional dependencies (sentence-transformers and transformers), which must be explicitly installed via the [full] extra. The package is actively maintained, supports Python 3.10 through 3.14, and carries no known vulnerabilities.

Use it for

  • Build RAG pipelines that use Hugging Face embeddings to encode documents and queries for semantic search.
  • Deploy LangChain agents that call Hugging Face models via API endpoints for inference without local GPU.
  • Run local language models through LangChain using Hugging Face transformers for privacy-sensitive applications.
  • Combine Hugging Face embeddings with LangChain memory and retrieval for context-aware chatbots.
  • Integrate open-source Hugging Face models into existing LangChain workflows without rewriting integration code.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

This is an active, well-maintained integration for a widely-used ecosystem (Hugging Face). Low install friction, permissive license, no known vulnerabilities, and broad Python version support (3.10–3.14) make it a straightforward choice if you need Hugging Face models or embeddings in LangChain. Be aware that local inference requires the [full] extra with newer dependency versions than langchain-community previously accepted.

Install

langchain-huggingface on PyPI

Before you install

Low friction install with a pure-Python wheel. Active maintenance with a recent release 120 days ago. Requires Python 3.10 or later. Optional extras (sentence-transformers>=5.2.0, transformers>=5.0.0) needed only for local inference; note that the [full] extra requires newer versions than langchain-community previously accepted.

For local inference (HuggingFaceEmbeddings, HuggingFacePipeline), install the [full] extra which adds sentence-transformers>=5.2.0 and transformers>=5.0.0. Requires Python 3.10 or later.

License in practice

MIT license is permissive and poses no restrictions on commercial or private use.

Quickstart

pip install langchain-huggingface

from langchain_huggingface import HuggingFaceEmbeddings
# or
from langchain_huggingface import HuggingFaceEndpoint

Verify before relying

  • Whether the package supports all Hugging Face model types or only a subset
  • Performance characteristics when using remote Hugging Face endpoints vs. local inference
  • Whether authentication credentials are required for all use cases or only certain endpoints

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <4.0.0,>=3.10.0
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
huggingface-hublangchain-coretokenizers
MaintenanceActively maintained 120 days since the last release
Last repo commit
First released
Downloads1,793,338 / month, #3,551 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering :: Artificial Intelligence

Evidence: langchain_huggingface-1.2.2-py3-none-any.whl

Tags

Capabilities
hugging face langchain integrationhugging face embeddings langchainlangchain hugging face modelshugging face llm integrationlangchain hugging face pipelinehugging face transformers langchain
Topics
langchain-integrationembeddingstransformers

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “hugging face langchain integration”

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also langchain-ollama · langchain-groq · langchain-openai · langchain-perplexity · langchain-google-vertexai · langchain-deepseek · langchain-xai · text-generation · abstract-hugpy-dev · hf-doc-builder