skillfed

llama-index-embeddings-huggingface

llama-index embeddings huggingface integration

llama-index-embeddings-huggingface v0.7.0 327.5K downloads/30d#7,568 on PyPI
Permissive license MIT Active released

What it is and what it does

This package provides a bridge between Hugging Face's transformer-based embedding models and LlamaIndex's embedding framework. It allows you to use compatible Hugging Face models as the embedding backend within LlamaIndex applications, enabling semantic search, retrieval-augmented generation, and other vector-based operations.

The integration depends on huggingface-hub for model access, llama-index-core for the embedding interface, and sentence-transformers for embedding computation. It's designed as a drop-in embedding provider for LlamaIndex workflows that want to leverage Hugging Face's open-source model ecosystem instead of proprietary embedding services.

Use it for:

  • Build retrieval-augmented generation pipelines using open-source Hugging Face embeddings.
  • Run semantic search over document collections with transformer-based embeddings.
  • Integrate Hugging Face models into LlamaIndex applications for cost-effective inference.
  • Experiment with different Hugging Face embedding models in LlamaIndex workflows.
  • Deploy LlamaIndex applications with fully open-source embedding infrastructure.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Integrates Hugging Face embedding models with LlamaIndex, allowing you to use transformer-based embeddings from Hugging Face within LlamaIndex applications.

Yes, if you are building with LlamaIndex and want to use Hugging Face embeddings. The package has low install friction, active maintenance, MIT licensing, and no known vulnerabilities. It's a straightforward integration layer with clear dependencies. Install it when you need Hugging Face embeddings in a LlamaIndex application.

Install

llama-index-embeddings-huggingface on PyPI

pip

pip install llama-index-embeddings-huggingface

uv

uv add llama-index-embeddings-huggingface

poetry

poetry add llama-index-embeddings-huggingface

Installing llama-index-embeddings-huggingface

Before you install

Low install friction with three straightforward runtime dependencies. Actively maintained as of the latest release.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

Quickstart

pip install llama-index-embeddings-huggingface

from llama_index.embeddings.huggingface import HuggingFaceEmbedding

embedding_model = HuggingFaceEmbedding()
vector = embedding_model.get_text_embedding("sample text")

Requires Python 3.10 or later (supports current Python versions up to <4.0).

Verify before relying

  • Which specific Hugging Face embedding models are officially tested or recommended.
  • Whether the package handles model downloading and caching automatically.
  • Performance characteristics when working with large-scale embedding operations.
  • Default model selection and configuration options available.

Package facts

License MIT (permissive)
Python support supports the current Python release (<4.0,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 3 — huggingface-hub, llama-index-core, sentence-transformers
Maintenance actively maintained — 155 days since the last release
First released
Downloads 327,477/month — #7,568 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: llama_index_embeddings_huggingface-0.7.0-py3-none-any.whl

Tags

huggingface embeddings llama indextransformer embeddings integrationhugging face sentence embeddingsllama index embedding providerhuggingface model embeddingssemantic search embeddingsvector embeddings huggingface
embeddingsraghuggingface-integration

More Artificial Intelligence packages

litellm

LiteLLM provides a unified Python interface to…

permissive · top 100 on PyPI

huggingface-hub

Client library and CLI tool for downloading,…

permissive · top 100 on PyPI

langchain

LangChain provides a framework for building…

permissive · top 1,000 on PyPI

hf-xet

hf-xet provides chunk-based deduplication and…

permissive · top 1,000 on PyPI

tokenizers

Tokenizers converts raw text into token…

permissive · top 1,000 on PyPI

transformers

Transformers provides a unified framework for…

permissive · top 1,000 on PyPI

llama-index-embeddings-openai

Integrates OpenAI's embedding models with…

permissive · top 5,000 on PyPI

llama-index-embeddings-langchain

Integrates Langchain embedding models with…

permissive · top 15,000 on PyPI

pymilvus.model

Provides embedding and reranker model…

permissive · top 15,000 on PyPI

llama-index-embeddings-vertex

Integrates Google Vertex AI embedding models…

permissive · top 15,000 on PyPI

llama-index-embeddings-ollama

Integrates Ollama's local embedding models with…

permissive · top 15,000 on PyPI

sentence-transformers

Computes embeddings and reranking scores for…

permissive · top 1,000 on PyPI

llama-index-embeddings-azure-openai

Integrates Azure OpenAI's embedding models with…

permissive · top 15,000 on PyPI

llama-index-embeddings-ibm

Integrates IBM watsonx.ai embedding models with…

permissive · top 15,000 on PyPI

llama-index-vector-stores-qdrant

Integrates Qdrant vector database with…

permissive · top 15,000 on PyPI

llama-index-vector-stores-chroma

Integrates Chroma vector database with…

permissive · top 15,000 on PyPI