The TypeScript SDK supports Hugging Face only through a hosted Text Embeddings Inference (TEI) endpoint, or any OpenAI-compatible Hugging Face endpoint. The local
sentence-transformers mode shown first is Python-only.Usage
Using Text Embeddings Inference (TEI)
You can also use Hugging Face’s Text Embeddings Inference service for faster and more efficient embeddings. This is the mode the TypeScript SDK uses.Config
Here are the parameters available for configuring the Hugging Face embedder:- Python
- TypeScript