Hugging Face x LangChain : A new partner package
Hugging Face Blog 2 years ago
Hugging Face and LangChain released langchain_huggingface, a jointly maintained Python package that integrates Hugging Face models directly into LangChain's ecosystem. The package provides multiple interfaces including HuggingFacePipeline for local model loading, HuggingFaceEndpoint for serverless API access, ChatHuggingFace for chat formatting, and HuggingFaceEmbeddings for embedding tasks. This partnership aims to reduce delays in bringing new Hugging Face features to LangChain users by replacing community-maintained classes that had become deprecated.