-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: SentenceWindowRetriever
returns List[Document]
with docs ordered by split_idx_start
#8590
base: main
Are you sure you want to change the base?
Conversation
SentenceWindowRetriever
returns a List[Document] instead of List[List[Document] with documents ordered by split_idx_start
SentenceWindowRetriever
returns List[Document] with docs ordered by split_idx_start
Pull Request Test Coverage Report for Build 12143707645Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to change the output_type for the run method in https://github.com/deepset-ai/haystack/pull/8590/files#diff-750f6a7bf921c73e8d49b501612d4302738c3ddbe8b2a78d866493db722388e5R146
The docstring needs to be updated accordingly.
The PR should be feat!: instead of refactor: as we the changes are user-facing and change how the component can be used.
SentenceWindowRetriever
returns List[Document] with docs ordered by split_idx_start
SentenceWindowRetriever
returns List[Document] with docs ordered by split_idx_start
SentenceWindowRetriever
returns List[Document] with docs ordered by split_idx_start
SentenceWindowRetriever
returns List[Document]
with docs ordered by split_idx_start
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. As this is a breaking change, we'll need to wait until the deprecation notice was released before merging this PR. Let's put it back into draft PR mode.
Once this is merged, we can remove the deprecation note also from the documentation page.
Related Issues
Proposed Changes:
SentenceWindowRetriever
now returns incontext_documents
aList[Document]
instead ofList[List[Document]
with the documents ordered bysplit_idx_start
How did you test it?
Checklist
fix:
,feat:
,build:
,chore:
,ci:
,docs:
,style:
,refactor:
,perf:
,test:
.