liveBook · Manning

Sentence-BERT

Also called SBERT

Sentence-BERT is a BERT-based transformer architecture that produces semantically meaningful sentence embeddings for efficient similarity comparison and retrieval.

How 3 Manning books explain it

Retrieval Augmented Generation, The Foundational Ideas

Sentence-BERT is a transformer-based model architecture that produces semantically meaningful sentence embeddings for efficient similarity comparison.

How it is used
Enables interactive semantic matching of queries against stored sentences in retrieval and RAG pipelines.
How deep it goes
Explains shared-weight bi-encoders, pooling, training pairs, and indexing costs; demonstrates pretrained use rather than a training implementation.
Examples
Uses support-ticket titles and a Python similarity listing to show network-related matches outranking a billing question.
What you can do after
Apply it via sentence-transformers to encode stored texts and incoming queries separately, then compare their embeddings.

Read how Retrieval Augmented Generation, The Foundational Ideas explains Sentence-BERT →

AI-Powered Search

SBERT, or Sentence-BERT, is a sentence-embedding method and Python library that adapts BERT-style models to produce semantically meaningful sentence vectors.

How it is used
Supports semantic similarity search, nearest-neighbor retrieval, and autocomplete suggestions for terms absent from a dictionary.
How deep it goes
Explains pooling, fine-tuning, embeddings, normalization, ANN indexing, thresholds, and implementation, but does not detail neural-network internals.
Examples
Demonstrates phrase-pair ranking, 768-dimensional embeddings, HNSW indexing, and autocomplete for “mountain hike” and “dehyd.”
What you can do after
Apply it via sentence_transformers and an ANN index to encode text, rank semantic neighbors, and serve thresholded suggestions.

Read how AI-Powered Search explains Sentence-BERT →

Build an Advanced RAG Application (From Scratch)

SBERT is a BERT-based sentence-embedding model optimized to represent semantic relationships and similarity between sentences.

How it is used
Supports semantic textual similarity by converting sentences into comparable contextual embeddings.
How deep it goes
Explains independent encoding, cosine comparison, and siamese or triplet training, but does not detail implementation code.
Examples
Uses paired sentence inputs, independent embeddings, and cosine similarity as the central comparison workflow.
What you can do after
Evaluate semantic relationships between sentences using independently generated embeddings and cosine similarity.

Read how Build an Advanced RAG Application (From Scratch) explains Sentence-BERT →

What to know first

Related concepts

Questions about Sentence-BERT

What is Sentence-BERT?

Sentence-BERT is a BERT-based transformer architecture that produces semantically meaningful sentence embeddings for efficient similarity comparison and retrieval.

Which Manning books explain Sentence-BERT?

Retrieval Augmented Generation, The Foundational Ideas, AI-Powered Search and Build an Advanced RAG Application (From Scratch).

What should I know before learning Sentence-BERT?

Manning books that teach Sentence-BERT usually introduce similarity search, language model, NLI and transformer architecture first.

What are the parts of Sentence-BERT?

Sentence-BERT includes independent encoding architecture.

What is Sentence-BERT also called?

Sentence-BERT is also called SBERT.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.