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 12, 2024
1 parent b2b94b5 commit 85f2ea2
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 @@ -142,7 +142,7 @@ def _chunk_text(self, text: str) -> List[str]:
escaped_separator = re.escape(curr_separator)
splits = re.split(escaped_separator, text)

if len(splits) == 1: # go to next separator, if current separator not found
if len(splits) == 1: # go to next separator, if current separator not found in the text
continue

chunks = []
Expand Down

0 comments on commit 85f2ea2

Please sign in to comment.