haystack icon indicating copy to clipboard operation
haystack copied to clipboard

fix: window_size set during run instead of construction

Open alperkaya opened this issue 1 year ago • 2 comments

Related Issues

  • fixes #8459

Proposed Changes:

How did you test it?

added new unit test

Notes for the reviewer

Checklist

alperkaya avatar Oct 17 '24 13:10 alperkaya

  • @davidsbatista

alperkaya avatar Oct 17 '24 13:10 alperkaya

Pull Request Test Coverage Report for Build 11461254431

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.1%) to 90.468%

Files with Coverage Reduction New Missed Lines %
components/retrievers/sentence_window_retriever.py 1 97.96%
<!-- Total: 1
Totals Coverage Status
Change from base Build 11458137811: 0.1%
Covered Lines: 7517
Relevant Lines: 8309

💛 - Coveralls

coveralls avatar Oct 17 '24 13:10 coveralls

@alperkaya I've reverted some of the changes you did, and added a few more tests - thanks for your contribution.

davidsbatista avatar Oct 21 '24 10:10 davidsbatista

@davidsbatista @TuanaCelik The issue mentions that "This will make the new sentence window retreval tutorial simpler". So we should follow up on this by simplifying the tutorial https://haystack.deepset.ai/tutorials/42_sentence_window_retriever

julian-risch avatar Oct 22 '24 08:10 julian-risch

@silvanocerza applied your changes request

davidsbatista avatar Oct 22 '24 13:10 davidsbatista