-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: window_size set during run instead of construction (#8463)
* window_size set during runtime * revert init and update run with window_size * improved doc, removed print * adding release notes * updating tests * reverting docstring example * Update haystack/components/retrievers/sentence_window_retriever.py Co-authored-by: Silvano Cerza <[email protected]> * Update haystack/components/retrievers/sentence_window_retriever.py Co-authored-by: Silvano Cerza <[email protected]> * Update haystack/components/retrievers/sentence_window_retriever.py Co-authored-by: Silvano Cerza <[email protected]> --------- Co-authored-by: David S. Batista <[email protected]> Co-authored-by: Silvano Cerza <[email protected]>
- Loading branch information
1 parent
0157459
commit a556e11
Showing
3 changed files
with
49 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
releasenotes/notes/add-window-size-parameter-runtime-e841c4471f9d6b9c.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
enhancements: | ||
- | | ||
The SentenceWindowRetriever now supports the `window_size` parameter at run time, overwriting the value set in the constructor. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters