Repository navigation
v1.2.0 — native Hugging Face TEI embedding provider
Adds an opt-in embedding provider for Hugging Face Text Embeddings Inference's native /embed API. Thanks to @jaimemachado, who contributed the provider in #424.
New
EMBEDDING_PROVIDER=tei, withTEI_URL,TEI_EMBEDDING_MODELandTEI_EMBED_BATCH_SIZE. See the README for setup.- A startup check against TEI's
GET /info. A proven mismatch ofTEI_EMBEDDING_MODELor batch size refuses to start. If/infocannot be reached, the server keeps serving and sends no embeddings until a check passes.
Upgrading
No action is needed unless you switch to tei. Ollama and OpenAI behaviour is unchanged. As with any provider change, switching an existing index needs make reset-embeddings.
Known limits
- Input over the model's limit is truncated, as with Ollama.
- A TEI server started with
--api-keyis not yet supported (#426). - Tested against TEI 1.8.3.
Full change: #427