Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Sentence Transformers

Python library for embedding and reranker models.

By Hugging FaceChecked
Visit sbert.net(opens in a new tab)
Bookmark

Bookmarks are kept in your free account, so you can find this page again on any device.

Sign in to bookmark

What it is

Sentence Transformers (SBERT) computes embeddings from text, images, audio or video, scores pairs of inputs with cross-encoder rerankers, and produces sparse embeddings with sparse encoders. It loads models from the Hugging Face Hub and can fine-tune embedding, reranker and sparse models on your own data. UKP Lab created it; Hugging Face now maintains it under the Apache 2.0 licence.

Best for

Python developers running or fine-tuning open embedding and reranking models.

Skills it helps with

Learn Sentence Transformers by doing

  • Hybrid search and reranking in Postgres

    Combine Postgres full-text search and pgvector with reciprocal rank fusion in one SQL query, rerank the top results with a cross-encoder, and measure the gain.

    TutorialAdvanced1 h 15 min

  • Chroma

    Open-source embedding database that is quick to start locally, plus a hosted cloud.

    Open sourceChroma

  • Faiss

    Meta's library for vector similarity search and clustering.

    Open sourceMeta

  • LanceDB

    Embedded, open-source vector and multimodal database on the Lance columnar format.

    Open sourceLanceDB

  • Milvus

    Open-source vector database built for large collections, from the team at Zilliz.

    Open sourceZilliz

  • pgvector

    Postgres extension for vector similarity search with HNSW and IVFFlat indexes.

    Open source

  • Pinecone

    Fully managed vector database with serverless indexes and built-in embedding models.

    FreemiumPinecone

All Retrieval and vector search