Sentence embedding models
What it is
Transformers trained so a single pooled vector represents a sentence — bi-encoders with contrastive objectives.
When to use it
Semantic search, clustering, deduplication, RAG retrieval (Sentence-BERT, E5, BGE, GTE, Contriever).
Caveats
A single fixed-length vector loses detail for long or multi-topic texts. Models trained for similarity do not automatically work for other notions of relevance, they degrade outside their training domain, and scores from different models are not comparable.
Key ideas
- Map a whole sentence or passage to one vector, so similar meanings land close together
- Trained contrastively on pairs of related texts
- Bi-encoder design: texts are embedded once and compared with cosine similarity
- The basis of semantic search and retrieval
Related architectures
Original paper
Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks (2019, arXiv)