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
Close
Hashes for llama_index_embeddings_huggingface_api-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f506c5b5bb8fc3fe0c1786e867938ee2cb0832f8dcee5731a73b379714c6cbe1 |
|
MD5 | 2e8724355208258886038dbc8e2ffc10 |
|
BLAKE2b-256 | ab393a3a2164f9e4274d76d9ff9af2c7d728e691ec25190153d9a5f258026eff |
Close
Hashes for llama_index_embeddings_huggingface_api-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e66ae9086ccf374bc08bb3f52ed8de83ef89ac5fdf569a6dc54980f92d44346 |
|
MD5 | e5eb7b4c13aa8206b7a1dfe12b2e6c6d |
|
BLAKE2b-256 | e0b04b34952d1dc025956b37239f6e6716c77521ab3877809feb0cdf81aa9cd4 |