Skip to main content

An integration package connecting Hugging Face and LangChain.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_huggingface-1.2.2.tar.gz (255.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_huggingface-1.2.2-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

Details for the file langchain_huggingface-1.2.2.tar.gz.

File metadata

  • Download URL: langchain_huggingface-1.2.2.tar.gz
  • Upload date:
  • Size: 255.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for langchain_huggingface-1.2.2.tar.gz
Algorithm Hash digest
SHA256 1dd91ec415190d2704e93ec149618e3145075863ba37e74afc9080d685dc2743
MD5 383c3a1b028aab82c320c64af1a67b5e
BLAKE2b-256 2ce84068ad02179253f55958e59e442e5b6e8cb95ffc5e805cc4db0b1ef61d4e

See more details on using hashes here.

File details

Details for the file langchain_huggingface-1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_huggingface-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f94944b0c0d5afc687568d426c87ed5236907464c41e72108ed76eee1a690f6d
MD5 7ac362fc0ccac4bd0c4fbbb4298f45f9
BLAKE2b-256 0aed648b87f9b67153ade616f360bf4145b76ed428b4adb89525938f611e9828

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page