Text Embeddings Inference (TEI) deploys open embedding, reranker, and sequence-classification models behind HTTP and gRPC APIs.
Overview
Text Embeddings Inference is a toolkit for deploying and serving open-source text embedding and related models. It supports high-throughput extraction for model families such as BERT variants, GTE, E5, Mistral-based encoders, and others listed in its supported-models documentation.
Beyond embeddings, TEI handles reranker cross-encoders and classic sequence classification models, exposing endpoints for embed, rerank, predict, and sparse embedding when SPLADE pooling is enabled. Features described in the docs include token-based dynamic batching, OpenTelemetry tracing, Prometheus metrics, optional gRPC, and Docker images tuned for CPU, GPU architectures, and Apple Silicon via Homebrew binaries.
Deployment commonly uses official container images with a model ID and shared volume for cached weights. Clients can call REST with curl, Hugging Face InferenceClient, or an OpenAI-compatible embeddings API. Private or gated Hugging Face models can be accessed with an HF token environment variable.
Air-gapped setups can mount pre-downloaded weights into the container. CPU, CUDA, ROCm on AMD Instinct, and local Metal builds on Mac are documented, with separate image tags per hardware backend.
Key features
- Embedding and reranker endpoints
- Sequence classification predict API
- Official Docker images per hardware
- Prometheus and OpenTelemetry
- Optional gRPC serving
- OpenAI-compatible embeddings API
- Dynamic token batching
- Air-gapped volume-mounted models
Use cases
- Self-hosted embedding API for RAG
- Reranking search results locally
- Sentiment or emotion classification
- GPU or CPU model serving
- Private Hugging Face model hosting