Built in
Hugging Face
The library supports generating embeddings using the Hugging Face Inference API.
By default it uses the sentence-transformers/distilbert-base-nli-mean-tokens
model but you can pass it a model parameter to use any other model available on the Hugging Face model hub.
To use Hugging face embedding models via its Inference API, you need to get a free token. You can get this API Token by signing up for hugging face and visiting this page. Set it to the environment like so -