Skip to content

Commit

Permalink
Update haystack/components/preprocessors/document_splitter.py
Browse files Browse the repository at this point in the history
Co-authored-by: Stefano Fiorucci <stefanofiorucci@gmail.com>
  • Loading branch information
Halpph and anakin87 authored May 22, 2024
1 parent 2151801 commit 9072d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haystack/components/preprocessors/document_splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _concatenate_units(
If the length of the current units is less than the pre-defined `split_threshold`, it does not create a new split. Instead, it concatenates the current units with the last split, preventing the creation of excessively small splits.
"""

text_splits = [] # type: List[str]
text_splits: List[str] = []
splits_pages = []
cur_page = 1
segments = windowed(elements, n=split_length, step=split_length - split_overlap)
Expand Down

0 comments on commit 9072d47

Please sign in to comment.