This folder contains various examples how to use SentenceTransformers.


The applications folder contains examples how to use SentenceTransformers for tasks like clustering or semantic search.


The evaluation folder contains some examples how to evaluate SentenceTransformer models for common tasks.


The training folder contains examples how to fine-tune transformer models like BERT, RoBERTa, or XLM-RoBERTa for generating sentence embedding. For the documentation how to train your own models, see Training Overview.

Unsupervised Learning

The unsupervised_learning folder contains examples how to train sentence embedding models without labeled data.