Hugging Face x LangChain : A new partner package

langchain_huggingface is a jointly maintained partner package by Hugging Face and LangChain that enables developers to seamlessly use Hugging Face models within LangChain applications. It provides integration classes for LLMs (HuggingFacePipeline), chat models (ChatHuggingFace), and embeddings (HuggingFaceEmbeddings), supporting text-generation, summarization, and translation tasks.

Creator: Hugging Face and LangChain | Category: tool-use | Status: draft

Key Capabilities

  • HuggingFacePipeline for local model inference with transformers
  • HuggingFaceEndpoint for API-based model access
  • ChatHuggingFace for chat model integration
  • HuggingFaceEmbeddings for text embeddings
  • HuggingFaceEndpointEmbeddings for remote embeddings
  • Seamless pip installable package (pip install langchain-huggingface)
  • Joint maintenance ensuring up-to-date Hugging Face features