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
Release history Release notifications | RSS feed
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
Close
Hashes for llama_index_embeddings_huggingface_api-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e36ddd5c824f9077d870ba6a1c53b4978038af230ca757e93ec1aaed0d2555ed |
|
MD5 | c6f42f14c65fc7899c49ccc5612d2a29 |
|
BLAKE2b-256 | a18fc984b97a753fdbb2d4858f01766d1ff947e5e88ba618ebf994cbe9729905 |
Close
Hashes for llama_index_embeddings_huggingface_api-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34c3f67e0755eb9acb101e027cdfa3b89d76706e43ff53da97cbff6fe4e180cf |
|
MD5 | 438fafc766d061a8e3b1e6b70350ce4e |
|
BLAKE2b-256 | abfebdbc97ab936f5f2f774a8550b14abec44edaf18e88d6e5de0b392a82c913 |