Skip to main content

LlamaIndex Embeddings Integration: Huggingface API

Integration with Hugging Face's Inference API for embeddings.

For more information on Hugging Face's Inference API, visit Hugging Face's Inference API documentation.

Installation

pip install llama-index-embeddings-huggingface-api

Usage

from llama_index.embeddings.huggingface_api import (
    HuggingFaceInferenceAPIEmbedding,
)

my_embed = HuggingFaceInferenceAPIEmbedding(
    model_name="BAAI/bge-small-en-v1.5",
    token="<your-token>",  # Optional
)

embeddings = my_embed.get_text_embedding("Why sky is blue")

Metadata

Release files for llama-index-embeddings-huggingface-api 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-embeddings-huggingface-api 0.7.0
File Size Uploaded Provenance Actions
llama_index_embeddings_huggingface_api-0.7.0.tar.gz 6.0 kB Without provenance Details for llama_index_embeddings_huggingface_api-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-embeddings-huggingface-api 0.7.0
File Interpreter ABI Platform Actions
llama_index_embeddings_huggingface_api-0.7.0-py3-none-any.whl Python 3 none any Details for llama_index_embeddings_huggingface_api-0.7.0-py3-none-any.whl

Total release size: 12.0 kB

Release files / llama_index_embeddings_huggingface_api-0.7.0.tar.gz

Download URL llama_index_embeddings_huggingface_api-0.7.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bf4759aad96f19cf05813344a4e147e5062e62819b2d0ba0109f4d8c6840dd02
BLAKE2b-256 checksum
How to use checksums
4ffc7a5bb843fa78694655504e2567f36f0c1cb35e390c1d38566f3b77fdda61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / llama_index_embeddings_huggingface_api-0.7.0-py3-none-any.whl

Download URL llama_index_embeddings_huggingface_api-0.7.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06375140b31b21a4f9e2484f13f93216cd0c70a9d61955d0e68b82a50a22d688
BLAKE2b-256 checksum
How to use checksums
096ffcc25bd5d290d8552d85603f038d698156fc804840f7d1347f0b4cc609b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for llama-index-embeddings-huggingface-api 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page