Overview
Sentence Transformers, often called SBERT, is an open-source Python library for turning text into embeddings: lists of numbers that place similar meanings close together. Those vectors are what make semantic search, duplicate detection, clustering and retrieval for AI chat systems work. The library was created by the UKP Lab at TU Darmstadt and is now maintained by Hugging Face.
A few lines of Python load a pretrained model and encode sentences, and the documentation points to more than 25,000 compatible models on the Hugging Face Hub. Besides standard embedding models, the library covers cross-encoders that rerank search results by scoring text pairs, sparse encoders, and multi-vector models for ColBERT-style late interaction. Some models also embed images, audio or video. Inference can run on PyTorch, ONNX or OpenVINO.
It is equally a training toolkit, with documented ways to fine-tune your own embedding or reranker models. The code is released under the Apache 2.0 licence and installs with pip, uv or conda. It is a developer library with no graphical interface, and models run on your own hardware, so large models benefit from a GPU.
Categories
Features
- Python API for computing text embeddings from pretrained models
- More than 25,000 compatible models on the Hugging Face Hub
- Cross-encoder models for reranking search results
- Sparse encoder and multi-vector (late interaction) models
- Support for image, audio and video embeddings with suitable models
- Tools for fine-tuning your own embedding and reranker models
- PyTorch, ONNX and OpenVINO inference backends
- Installs with pip, uv or conda
Privacy
The library runs locally, so the text you embed is processed on your own hardware; models are downloaded from the Hugging Face Hub, where a login is optional. The documentation site loads Plausible analytics.
Pros & Cons
Pros
- Free and open source under the Apache 2.0 licence
- Models run on your own machine, so text need not leave it
- Very large choice of ready-made models
- Covers both using and training models
- Maintained by Hugging Face with thorough documentation
Cons
- A Python library with no graphical interface
- Needs a recent Python and PyTorch setup
- Larger models are slow without a GPU
- Choosing a model from thousands takes some research
Community Reviews (0)
No written reviews yet — be the first to rate this tool.