diff --git a/haystack/components/preprocessors/recursive_splitter.py b/haystack/components/preprocessors/recursive_splitter.py index d61e0ee628..022f4db028 100644 --- a/haystack/components/preprocessors/recursive_splitter.py +++ b/haystack/components/preprocessors/recursive_splitter.py @@ -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: