Skip to main content

llama-index embeddings huggingface api integration

Project description

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")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_embeddings_huggingface_api-0.4.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_embeddings_huggingface_api-0.4.1.tar.gz
Algorithm Hash digest
SHA256 72486fba3e4d6c53d0943b53b310b203f72bf80bf156490debe5699c90915c31
MD5 148149b5fdce77add3db647bd70a8aa9
BLAKE2b-256 bf359853408b02e1f1623c418e2264b7c45a7e67bbb974160ca2e42b8fdc11d7

See more details on using hashes here.

File details

Details for the file llama_index_embeddings_huggingface_api-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_embeddings_huggingface_api-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60b39e605396098b558d22468ed3cefaba10d84c93876ff6f930d17d0d217b4b
MD5 faa8e2cfefc7db12f07c0a5868278915
BLAKE2b-256 80a2cd7cb6175a3d5bf118591e515ea82e061f84436f277d056559c85ab43a90

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page