Skip to content

text-embeddings-inference

Rust server for hosting open text embedding and reranking models on your own hardware

Permissive (OSI) · Apache-2.0 AI-native
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

71

Health

Active

Overview

Stars

5,130

Last commit

7 days ago

Nov 2026

Repository age

3 years

since Oct 2023

Latest version

v1.9.4

Sep 2026

Contributors

–

33 active in 90 days

Releases

5

last 12 months

Language

Rust

Text Embeddings Inference, or TEI, is a toolkit for serving open source text embedding and sequence classification models over an API. It is written in Rust and aimed at teams that run retrieval, semantic search or RAG pipelines and want to host the model themselves.

It loads Safetensors and ONNX weights and needs no model graph compilation step. Requests are batched dynamically by token count. The code uses Flash Attention, Candle and cuBLASLt for speed, and Metal for local runs on Macs. Supported architectures include BERT, CamemBERT, XLM-RoBERTa, NomicBERT, JinaBERT, MPNet, ModernBERT, Qwen2, Qwen3, Mistral-based and Gemma3 models. It also handles re-rankers, sequence classification models and SPLADE pooling.

You can run it from small Docker images, install it with Homebrew on Apple Silicon, build it locally, or use ARM64 and AMD ROCm builds. For operations it offers OpenTelemetry tracing, Prometheus metrics and gRPC. Air-gapped deployment and private or gated models are covered. It replaces hosted embedding APIs when you want control over the model and the data. It is Apache-2.0 licensed.

Who it's for

ML engineers building RAG pipelines

It serves embedding and reranker models behind one API with batching, so retrieval code can call your own endpoint.

Skip if: You only embed a few documents occasionally and a hosted embedding API is simpler.

Platform teams running models in restricted networks

Air-gapped deployment, small Docker images and Prometheus and OpenTelemetry support suit controlled infrastructure.

Skip if: You need to serve chat or text generation models, which this does not do.

Mac developers testing embeddings locally

Metal support and a Homebrew install let you run models on Apple Silicon without a GPU server.

Skip if: You need high-throughput production serving without NVIDIA or AMD GPU hardware.

The problem it solves

Hosted embedding APIs send your text to a third party and charge per request. Running open embedding models yourself usually means writing batching and serving code. This gives you a ready server for that job.

Strengths

  • Token-based dynamic batching and Flash Attention for fast embedding throughput
  • Loads Safetensors and ONNX weights with no model graph compilation step
  • Runs on NVIDIA, AMD ROCm, ARM64 and Apple Silicon with Metal
  • Ships OpenTelemetry tracing, Prometheus metrics and a gRPC interface
  • Active project with 33 contributors in the last 90 days and Apache-2.0 license

Trade-offs

  • Serves embeddings, rerankers and classifiers only, not text generation
  • Only supports the listed model architectures
  • Large models such as 7B embedders need substantial GPU memory
  • No Windows platform listed

Self-host text-embeddings-inference

Self-hostable
Yes
Hosted plan
From $9/month · pricing

Frequently asked questions

Is it free to use?

Yes. It is Apache-2.0 licensed and you can self-host it. A hosted plan also exists.

Can I run it offline?

Yes. It supports air-gapped deployment, and it can also use private or gated models.

Which platforms does it run on?

Linux and macOS through the command line, with Docker images. Apple Silicon is supported through Homebrew and Metal.

Does it support rerankers?

Yes. It serves re-ranker models, sequence classification models and SPLADE pooling.

Similar tools in RAG and semantic search

MaxKB

RAG and semantic search

Self-hosted platform for building RAG knowledge bases and AI agents with workflows

23k 3.2k today Thriving GPL-3.0

utopia

RAG and semantic search

8.7k 1.2k 8 days ago Active Apache-2.0

zep

RAG and semantic search

5k 658 6 days ago Active Apache-2.0

rag-stack

RAG and semantic search

1.6k 137 42 days ago Slowing MIT

Pipeshub

RAG and semantic search

4.1k 690 today Thriving Apache-2.0