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

deepset-ai / haystack / 22175870256
93%

Build:
DEFAULT BRANCH: main
Ran 19 Feb 2026 09:32AM UTC
Jobs 1
Files 254
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

19 Feb 2026 09:22AM UTC coverage: 92.68% (-0.02%) from 92.699%
22175870256

push

github

web-flow
feat: add flexible document comparison field to retrieval evaluators (#10604)

* feat: add flexible document comparison field to retrieval evaluators

Add a `document_comparison_field` parameter to DocumentMRREvaluator,
DocumentMAPEvaluator, and DocumentRecallEvaluator. This allows users
to compare documents by `id` or `meta.<key>` instead of the previously
hardcoded `doc.content`.

Closes #9331

* fix: address review feedback for document comparison field

- Use single backticks in docstrings instead of double backticks
- Support nested meta fields (e.g. meta.source.url) matching filtering logic
- Use walrus operator to avoid duplicate _get_comparison_value calls
- Handle {None} in recall validity checks alongside {""}
- Improve warning messages for invalid comparison values
- Simplify mode function selection with if/elif
- Use list comprehension for score calculation
- Fix release notes wording

* style: format test_document_recall.py

* test: add nested meta field tests for document evaluators

---------

Co-authored-by: yaowubarbara <yaowubarbara@users.noreply.github.com>
Co-authored-by: bogdankostic <bogdankostic@web.de>

15332 of 16543 relevant lines covered (92.68%)

0.93 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
3
91.3
-4.85% components/evaluators/document_map.py
3
95.65
-4.35% components/evaluators/document_recall.py
4
90.48
-4.98% components/evaluators/document_mrr.py
Jobs
ID Job ID Ran Files Coverage
1 22175870256.1 19 Feb 2026 09:32AM UTC 254
92.68
GitHub Action Run
Source Files on build 22175870256
  • Tree
  • List 254
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22175870256
  • 6ba13ee3 on github
  • Prev Build on main (#22175002180)
  • Next Build on main (#22178073892)
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

© 2026 Coveralls, Inc