mathislucka
fe9b1e29d4
CI: fix format after newly introduced formatting rules from ruff release ( #8696 )
2025-01-09 16:25:55 +00:00
Anes Benmerzoug
f5683bc8fa
fix: document joiner division by zero with distribution based rank fusion ( #8520 )
...
* Parametrize document joiner tests with empty lists
* Skip loop in _distribution_based_rank_fusion if document list is empty
* Parametrize test_empty_list with join_mode
* Prevent division by zero in _merge and _reciprocal_rank_fusion
* Add release notes
---------
Co-authored-by: Silvano Cerza <silvanocerza@gmail.com>
2024-11-14 11:41:28 +00:00
Anushree Bannadabhavi
1f05e633a9
refactor: refactor DocumentJoiner to follow enum pattern for join_mode parameter ( #8010 )
...
* refactor document joiner to follow enum pattern for join mode
* Added to_dict and from_dict
2024-07-12 11:29:44 +02:00
Nicola Procopio
cafcf51cb0
Fixed ZeroDivisionError in JoinDocuments ( #7972 )
...
* added new strategy DBRF
* fix hook
* fix typos
* added test for DBRF
* fix format
* new release note
* reformatted with black
* Update haystack/components/joiners/document_joiner.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* updated comments
* added type-hint and return type
* fix
* revert for lint problems
* fix
* fix
* fix
* fix
* another tentative
* dict out file
* only output
* fix output
* revert
* removed unused imports
* fix typing
* fixed ZeroDivisionError
* added test
* add release note
* removed try - except
* renamed test
* Update test/components/joiners/test_document_joiner.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* Update haystack/components/joiners/document_joiner.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* fix format error
* removed releasenotes/notes/release-note-9b2bc03a8a398078.yaml
* added comment
---------
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
Co-authored-by: anakin87 <stefanofiorucci@gmail.com>
2024-07-04 10:07:26 +02:00
Nicola Procopio
03d9057e64
Add Distribution based rank fusion mode ( #7915 )
...
* added new strategy DBRF
* fix hook
* fix typos
* added test for DBRF
* fix format
* new release note
* reformatted with black
* Update haystack/components/joiners/document_joiner.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* updated comments
* added type-hint and return type
* fix
* revert for lint problems
* fix
* fix
* fix
* fix
* another tentative
* dict out file
* only output
* fix output
* revert
* removed unused imports
* fix typing
---------
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
Co-authored-by: anakin87 <stefanofiorucci@gmail.com>
2024-07-03 13:55:17 +02:00
Varun Krishnan
badb05b3ab
feat: allow DocumentJoiner to accept top_k parameter in run method ( #7709 )
...
* feat: allow DocumentJoiner to accept top_k parameter in run method
* Added release note for DocumentJoiner top_k fix
2024-05-23 16:03:26 +02:00
Massimiliano Pippi
10c675d534
chore: add license header to all modules ( #7675 )
...
* add license header to modules
* check license header at linting time
2024-05-09 13:40:36 +00:00
Rob Pasternak
7358b910d7
feat: Weights and score normalization for DocumentJoiner with reciprocal rank fusion ( #6735 )
...
* Add weighting and score normalization for DocumentJoiner w/ reciprocal rank fusion (fix trailing whitespace)
* Add release notes
* Add unit test
* Update release note
---------
Co-authored-by: Vladimir Blagojevic <dovlex@gmail.com>
2024-01-24 15:45:53 +01:00
Massimiliano Pippi
93b2aaee09
chore: move DocumentJoiner
to new joiners
package ( #6692 )
...
* move DocumentJoiner to new joiners package
* relnote
* leftovers
* fix docstrings generation
* fix unrelated pydoc misconfiguration
* more unrelated work, yay!
* fix assertions
2024-01-08 22:06:27 +01:00