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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb3c94cab648950ce5b19b55edb0171687e297f0e837e915237dcbfd21fa8dc2 |
|
MD5 | bf43a6f444f4cf358856b19779e340b3 |
|
BLAKE2b-256 | c95ed566a1431c2ae89d1738f536045cb01049bdc272fb3d4a5d4616fdbaac40 |
Close
Hashes for llama_index_embeddings_huggingface_api-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 623a3a1e54c757db1ec40758abe9b6eef8f600480cdd310eed1210976854ffb2 |
|
MD5 | 0a7af5db56c8ddbce43a1ce24c8cb651 |
|
BLAKE2b-256 | a7a1e3350411e5240d3e28731b5f3a07a6df5a3c02d3a5ace8fa9d5495f99f12 |