Skip to content

Commit

Permalink
Update haystack/components/preprocessors/recursive_splitter.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Husch Lee <[email protected]>
  • Loading branch information
davidsbatista and sjrl authored Dec 19, 2024
1 parent 938b610 commit bc4dfbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haystack/components/preprocessors/recursive_splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def _chunk_text(self, text: str) -> List[str]:
if self._chunk_length(split_text) > self.split_length:
if curr_separator == self.separators[-1]:
# tried the last separator, can't split further, break the loop and fall back to
# character-level chunking
# word- or character-level chunking
break
chunks.extend(self._chunk_text(split_text))
else:
Expand Down

0 comments on commit bc4dfbd

Please sign in to comment.