mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 18:50:33 +00:00
49 lines
2.3 KiB
Markdown
49 lines
2.3 KiB
Markdown
# langchain-huggingface
|
|
|
|
[](https://pypi.org/project/langchain-huggingface/#history)
|
|
[](https://opensource.org/licenses/MIT)
|
|
[](https://pypistats.org/packages/langchain-huggingface)
|
|
[](https://x.com/langchain)
|
|
|
|
Looking for the JS/TS version? Check out [LangChain.js](https://github.com/langchain-ai/langchainjs).
|
|
|
|
## Quick Install
|
|
|
|
```bash
|
|
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`:
|
|
>
|
|
> ```bash
|
|
> 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:
|
|
>
|
|
> ```bash
|
|
> 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](https://reference.langchain.com/python/integrations/langchain_huggingface/). For conceptual guides, tutorials, and examples on using these classes, see the [LangChain Docs](https://docs.langchain.com/oss/python/integrations/providers/huggingface).
|
|
|
|
## 📕 Releases & Versioning
|
|
|
|
See our [Releases](https://docs.langchain.com/oss/python/release-policy) and [Versioning](https://docs.langchain.com/oss/python/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](https://docs.langchain.com/oss/python/contributing/overview).
|