• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

deepset-ai / haystack / 16969724964
92%

Build:
DEFAULT BRANCH: main
Ran 14 Aug 2025 03:36PM UTC
Jobs 1
Files 229
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Aug 2025 03:34PM UTC coverage: 92.199% (+0.006%) from 92.193%
16969724964

push

github

web-flow
fix: fix inconsistent `top_k` validation in `SentenceTransformersDiversityRanker` (#9698)

* Fix inconsistent top_k validation in SentenceTransformersDiversityRanker
- change elif to if in run() method to ensure top_k validation always
  runs regardless of whatever top_k comes from init or runtime
- Both scenarios now consistently raise ValueError with descriptive
  message format: 'top_k must be between 1 and X, but got Y'
- Fixes inconsistency where init top_k gave confusing MMR error while
  runtime top_k gave clear validation error

* improvements

---------

Co-authored-by: Stefano Fiorucci <stefanofiorucci@gmail.com>

12895 of 13986 relevant lines covered (92.2%)

0.92 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
95.42
0.59% components/rankers/sentence_transformers_diversity.py
Jobs
ID Job ID Ran Files Coverage
1 16969724964.1 14 Aug 2025 03:36PM UTC 229
92.2
GitHub Action Run
Source Files on build 16969724964
  • Tree
  • List 229
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16969724964
  • ae6f3bcf on github
  • Prev Build on main (#16969068567)
  • Next Build on main (#17034661568)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc