huggingface/sentence-transformers

State-of-the-Art Embeddings, Retrieval, and Reranking

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 29 minutes ago
Added to GitGenius on September 3rd, 2026
Created on July 24th, 2019
Open Issues & Pull Requests: 1,294 (+0)
GitHub issues: Enabled
Number of forks: 2,879
Total Stargazers: 19,077 (+0)
Total Subscribers: 153 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 15.7 hours
Mean response time: 25.9 days
90th percentile: 11.4 days
Tracked items: 545

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 99% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 8% of issues opened in the past year have been closed. Three people close 59% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 247
New in 7 days: 2
Closed in 7 days: 6
Avg open age: 627 days
Stale 30+ days: 242
Stale 90+ days: 226

Recent activity

Opened in 7 days: 1
Closed in 7 days: 4
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (35)
  • good first issue (13)
  • enhancement (11)
  • documentation (4)
  • good second issue (2)
  • question (1)

Detailed Description

Sentence Transformers is a Python framework for computing embeddings, similarity scores, and reranked results using transformer-based models.

The framework addresses the need to generate high-quality text representations for retrieval and ranking tasks. It provides unified interfaces for four model types: Sentence Transformers for dense embeddings, Cross-Encoder models for reranking, Sparse Encoder models for sparse representations, and Multi-Vector Encoder models for token-level embeddings in late-interaction retrieval. Users can load pretrained models from Hugging Face and immediately compute embeddings or similarity scores with minimal code, or train and finetune custom models for domain-specific applications.

The tool suits projects requiring semantic search, similarity matching, or ranking pipelines. It works well for teams wanting to avoid building embedding infrastructure from scratch, as it handles model loading, inference, and training workflows. The framework integrates with the Hugging Face ecosystem, giving access to thousands of pretrained models including those benchmarked on the Massive Text Embeddings Benchmark leaderboard. Installation requires Python 3.10 or later, PyTorch 2.2 or later, and transformers v5.0 or later, with optional extras for image, audio, video, training, and export formats.

The project maintains active engagement with its user base, with almost all open issues originating from external adopters rather than the core team, indicating substantial real-world usage. Maintainers respond to new issues and pull requests within a day. Work in the issue tracker centers on bug fixes, enhancements, and documentation improvements.