langchain-huggingface 1.2.2


pip install langchain-huggingface

  Latest version

Released: Apr 16, 2026


Meta
Requires Python: <4.0.0,>=3.10.0

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers

License
  • OSI Approved :: MIT License

Programming Language
  • Python :: 3
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14

Topic
  • Scientific/Engineering :: Artificial Intelligence

langchain-huggingface

PyPI - Version PyPI - License PyPI - Downloads Twitter

Looking for the JS/TS version? Check out LangChain.js.

Quick Install

pip install langchain-huggingface

Note: The base install does not include sentence-transformers or transformers. If you plan to use HuggingFaceEmbeddings or HuggingFacePipeline for local inference, install the [full] extra which includes sentence-transformers>=5.2.0 and transformers>=5.0.0:

pip install langchain-huggingface[full]

Migrating from langchain-community? Note that langchain-community accepted sentence-transformers>=2.2.0, but langchain-huggingface[full] requires >=5.2.0. If your project pins an older version, upgrade it:

pip install "sentence-transformers>=5.2.0"

๐Ÿค” What is this?

This package contains the LangChain integrations for Hugging Face related classes.

๐Ÿ“– Documentation

For full documentation, see the API reference. For conceptual guides, tutorials, and examples on using these classes, see the LangChain Docs.

๐Ÿ“• Releases & Versioning

See our Releases and Versioning policies.

๐Ÿ’ Contributing

As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.

For detailed information on how to contribute, see the Contributing Guide.

Extras:
Dependencies:
huggingface-hub (<2.0.0,>=0.33.4)
langchain-core (<2.0.0,>=1.2.31)
tokenizers (<1.0.0,>=0.19.1)