Skip to content

v1.2.0 — native Hugging Face TEI embedding provider

Choose a tag to compare

@maxkuminov maxkuminov released this 08 Nov 17:03
· 12 commits to main since this release
16e4a52

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, with TEI_URL, TEI_EMBEDDING_MODEL and TEI_EMBED_BATCH_SIZE. See the README for setup.
  • A startup check against TEI's GET /info. A proven mismatch of TEI_EMBEDDING_MODEL or batch size refuses to start. If /info cannot 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-key is not yet supported (#426).
  • Tested against TEI 1.8.3.

Full change: #427