Sentence Embedding

Category: NLP / Language Processing

A fixed-length dense vector representation that captures the overall semantic meaning of an entire sentence or passage.

Full Explanation

Sentence embeddings encode the meaning of variable-length text into a single fixed-dimensional vector, enabling efficient comparison and retrieval of text segments. Early approaches averaged word embeddings, but modern methods use dedicated models like Sentence-BERT (SBERT) that are specifically trained to produce meaningful sentence-level representations. Training typically uses contrastive learning on paraphrase pairs or natural language inference data. Sentence embeddings are fundamental to semantic search, clustering, deduplication, and retrieval-augmented generation. The quality of sentence embeddings is evaluated on semantic textual similarity benchmarks and retrieval tasks. Leading models include those from the Sentence Transformers library, Cohere Embed, and OpenAI embeddings. The MTEB benchmark provides comprehensive evaluation across multiple tasks.

Related Terms

More in NLP / Language Processing

Explore More