HuggingFaceEndpointEmbeddings()Name of the provider to use for inference with the model specified in
repo_id. e.g. "sambanova". if not specified, defaults to HF Inference API.
available providers can be found in the huggingface_hub documentation.
HuggingFaceHub embedding models.
To use, you should have the huggingface_hub python package installed, and the
environment variable HUGGINGFACEHUB_API_TOKEN set with your API token, or pass
it as a named parameter to the constructor.
Example:
from langchain_huggingface import HuggingFaceEndpointEmbeddings
model = "sentence-transformers/all-mpnet-base-v2"
hf = HuggingFaceEndpointEmbeddings(
model=model,
task="feature-extraction",
huggingfacehub_api_token="my-api-key",
)