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
File details
Details for the file llama_index_embeddings_huggingface_api-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_embeddings_huggingface_api-0.3.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6722a946dfa965b5d05c7c1c43d722a4e822381630f7098883373a4e05237a39 |
|
MD5 | e12b479639324e82be3996c52f15c5de |
|
BLAKE2b-256 | a04380aa935b317ce5f22de0d4359fc374f04e21e6f7e4a9f1466abc77484682 |
File details
Details for the file llama_index_embeddings_huggingface_api-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_embeddings_huggingface_api-0.3.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13ec7ee0fb5ac6ce506b9b624b6ed6a046614631a22422ba6e26fd8c193ed6b3 |
|
MD5 | 57862d19b901b04fc4ea2411e6c9f2b7 |
|
BLAKE2b-256 | 43450d95c55b101643c5eaf2d51040a75f4d6616403a561e7e44f3e0c37c66b6 |