We are excited to announce huggingface-langchain. A new open-source package to seamlessly integrate the latest open Models from huggingface into LangChainAI, supporting local models hosted models!
TL;DR
- 🛠️ Easy Installation: Install with a simple
pip install langchain-huggingface. - 🚪 Open Models: Easily access open LLMs and Embedding models.
- 🌐 Flexibility: Utilize Hugging Face models via API, Inference Endpoints, or self-hosted Text Generation Inference.
- 💬 Chat Models: Support conversational models using ChatHuggingFace.
- 🧠 Embeddings: Leverage sentence-transformers embeddings locally or via Hugging Face endpoints.
- 🏎️ Fast Integration: Models can be loaded directly using the from_model_id method or by defining the pipeline manually.
Getting Started
Getting started with langchain-huggingface is straightforward. Here’s how you can install and begin using the package:
pip install langchain-huggingface
Now that the package is installed, let’s have a tour of what’s inside!
Read related articles in our Blog.

