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.3.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_embeddings_huggingface_api-0.3.1.tar.gz
Algorithm Hash digest
SHA256 a12b1a48b36a6d86437bd25e89acf9426dd6bb040dbb7485052f8f7d6646b781
MD5 78735a37406ba19319b8b59d1a20c08a
BLAKE2b-256 1120d8a0b5e3c964e32705155ea3c3df6b072ba2a4c94afb19a61a8f87808f46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_huggingface_api-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 01053be04bc607879e9c00932f501e9645d4c2b5daac6a234961b5d133cca82e
MD5 94f9f74455f5c64fdbb0cf50ccde154a
BLAKE2b-256 4618fa3a0ae5693504049afc643df530d022077bad8aec802899b0c0d8de8214

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